Merge pull request #5283 from austinvazquez/fix-codeql-2.16-in-23.0

[23.0 backport] Fix codeql 2.16 in 23.0
This commit is contained in:
Sebastiaan van Stijn 2024-07-24 01:07:55 +02:00 committed by GitHub
commit 0f15753db9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 0 deletions

View File

@ -16,6 +16,9 @@ on:
jobs:
codeql:
runs-on: ubuntu-20.04
env:
DISABLE_WARN_OUTSIDE_CONTAINER: '1'
steps:
-
name: Checkout
@ -32,6 +35,16 @@ jobs:
uses: github/codeql-action/init@v2
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
# which is ... not what we want, so let's give it a "go.mod".
# see: https://github.com/docker/cli/pull/4944#issuecomment-2002034698
-
name: Create go.mod
run: |
ln -s vendor.mod go.mod
ln -s vendor.sum go.sum
-
name: Autobuild
uses: github/codeql-action/autobuild@v2