diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 3b8884ca2d..0b6bd18024 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -44,16 +44,6 @@ jobs: if: ${{ github.event_name == 'pull_request' }} run: | git checkout HEAD^2 - - - name: Update Go - uses: actions/setup-go@v5 - with: - go-version: '1.21' - - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - languages: go # CodeQL 2.16.4's auto-build added support for multi-module repositories, # and is trying to be smart by searching for modules in every directory, # including vendor directories. If no module is found, it's creating one @@ -64,6 +54,16 @@ jobs: run: | ln -s vendor.mod go.mod ln -s vendor.sum go.sum + - + name: Update Go + uses: actions/setup-go@v5 + with: + go-version: '1.21' + - + name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: go - name: Autobuild uses: github/codeql-action/autobuild@v3 diff --git a/vendor.mod b/vendor.mod index b78aaa1a57..26a4355b5a 100644 --- a/vendor.mod +++ b/vendor.mod @@ -4,7 +4,7 @@ module github.com/docker/cli // There is no 'go.mod' file, as that would imply opting in for all the rules // around SemVer, which this repo cannot abide by as it uses CalVer. -go 1.21 +go 1.21.0 require ( dario.cat/mergo v1.0.0