Skip to content

Commit 0f15753

Browse files
authored
Merge pull request #5283 from austinvazquez/fix-codeql-2.16-in-23.0
[23.0 backport] Fix codeql 2.16 in 23.0
2 parents e1ba8df + fd1f5bf commit 0f15753

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
jobs:
1717
codeql:
1818
runs-on: ubuntu-20.04
19+
env:
20+
DISABLE_WARN_OUTSIDE_CONTAINER: '1'
21+
1922
steps:
2023
-
2124
name: Checkout
@@ -32,6 +35,16 @@ jobs:
3235
uses: github/codeql-action/init@v2
3336
with:
3437
languages: go
38+
# CodeQL 2.16.4's auto-build added support for multi-module repositories,
39+
# and is trying to be smart by searching for modules in every directory,
40+
# including vendor directories. If no module is found, it's creating one
41+
# which is ... not what we want, so let's give it a "go.mod".
42+
# see: https://github.com/docker/cli/pull/4944#issuecomment-2002034698
43+
-
44+
name: Create go.mod
45+
run: |
46+
ln -s vendor.mod go.mod
47+
ln -s vendor.sum go.sum
3548
-
3649
name: Autobuild
3750
uses: github/codeql-action/autobuild@v2

0 commit comments

Comments
 (0)