Skip to content

Commit 83c004e

Browse files
committed
Add workaround for Go 1.21
since codeql does not (yet) support Go 1.21, see github/codeql-action#1842
1 parent 10f3cbd commit 83c004e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/codeql-analysis.yml

+9
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ jobs:
3737
- name: Checkout repository
3838
uses: actions/checkout@v4
3939

40+
# Manually install the right version of Go
41+
# See https://github.com/github/codeql-action/issues/1842 and https://github.com/github/codeql/issues/13992
42+
- name: Setup Go
43+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
44+
with:
45+
go-version-file: "go.mod"
46+
# not needed but gets rid of warnings
47+
cache: false
48+
4049
# Initializes the CodeQL tools for scanning.
4150
- name: Initialize CodeQL
4251
uses: github/codeql-action/init@v3

0 commit comments

Comments
 (0)