We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e1ba8df + fd1f5bf commit 0f15753Copy full SHA for 0f15753
1 file changed
.github/workflows/codeql-analysis.yml
@@ -16,6 +16,9 @@ on:
16
jobs:
17
codeql:
18
runs-on: ubuntu-20.04
19
+ env:
20
+ DISABLE_WARN_OUTSIDE_CONTAINER: '1'
21
+
22
steps:
23
-
24
name: Checkout
@@ -32,6 +35,16 @@ jobs:
32
35
uses: github/codeql-action/init@v2
33
36
with:
34
37
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
48
49
name: Autobuild
50
uses: github/codeql-action/autobuild@v2
0 commit comments