Merge pull request #4947 from thaJeztah/fix_codeql

ci: fix CodeQL 2.16.4 autobuild
This commit is contained in:
Sebastiaan van Stijn 2024-03-18 12:07:08 +01:00 committed by GitHub
commit 396a0823f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions

View File

@ -26,6 +26,8 @@ jobs:
codeql: codeql:
runs-on: 'ubuntu-latest' runs-on: 'ubuntu-latest'
timeout-minutes: 360 timeout-minutes: 360
env:
DISABLE_WARN_OUTSIDE_CONTAINER: '1'
permissions: permissions:
actions: read actions: read
contents: read contents: read
@ -52,6 +54,16 @@ jobs:
uses: github/codeql-action/init@v3 uses: github/codeql-action/init@v3
with: with:
languages: go 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 name: Autobuild
uses: github/codeql-action/autobuild@v3 uses: github/codeql-action/autobuild@v3