Skip to content

Commit 8e492ec

Browse files
authored
fix(ci): install go for codeql (#527)
1 parent 05b0d75 commit 8e492ec

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/codeql-analysis.yml

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

40+
- name: install go
41+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
42+
with:
43+
# use version from go.mod file
44+
go-version-file: 'go.mod'
45+
cache: true
46+
check-latest: true
47+
4048
# Initializes the CodeQL tools for scanning.
4149
- name: Initialize CodeQL
4250
uses: github/codeql-action/init@b7bf0a3ed3ecfa44160715d7c442788f65f0f923 # v3

0 commit comments

Comments
 (0)