Skip to content

Commit 97671c1

Browse files
mythitkatila
authored andcommitted
ci: fix Go version selection for CodeQL too
See 1fbbfeb for details. Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
1 parent bf2bf8b commit 97671c1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/lib-codeql.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,16 @@ jobs:
2020
- name: Checkout repository
2121
uses: actions/checkout@v4
2222

23+
- uses: actions/setup-go@v4
24+
with:
25+
go-version-file: go.mod
26+
check-latest: true
27+
2328
- name: Initialize CodeQL
2429
uses: github/codeql-action/init@v2
2530
with:
2631
languages: 'go'
2732

28-
- uses: actions/setup-go@v4
2933
- name: Perform CodeQL Analysis
3034
uses: github/codeql-action/analyze@v2
3135
with:

0 commit comments

Comments
 (0)