Merge pull request #5049 from thaJeztah/codeql_cache

Fix errors encountered by CodeQL
This commit is contained in:
Sebastiaan van Stijn 2024-05-01 09:35:47 +02:00 committed by GitHub
commit 2c8a5f7475
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 11 deletions

View File

@ -44,16 +44,6 @@ jobs:
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
run: | run: |
git checkout HEAD^2 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, # 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, # 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 # including vendor directories. If no module is found, it's creating one
@ -64,6 +54,16 @@ jobs:
run: | run: |
ln -s vendor.mod go.mod ln -s vendor.mod go.mod
ln -s vendor.sum go.sum 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 name: Autobuild
uses: github/codeql-action/autobuild@v3 uses: github/codeql-action/autobuild@v3

View File

@ -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 // 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. // around SemVer, which this repo cannot abide by as it uses CalVer.
go 1.21 go 1.21.0
require ( require (
dario.cat/mergo v1.0.0 dario.cat/mergo v1.0.0