Skip to content

Commit 204c9d4

Browse files
committed
Fix golang setup and build in "CodeQL" workflow
Adds steps to the "CodeQL" GH Actions workflow in order to: - setup (install) golang on the GH Actions runner; - run a golang build that CodeQL can trace, scan, and analyze. Uses "codeql-action/autobuild" in an attempt to simplify the workflow.
1 parent e8561f1 commit 204c9d4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/codeql-analysis.yml

+14
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,19 @@ jobs:
3030
with:
3131
languages: ${{ matrix.language }}
3232

33+
- name: Set Go version
34+
id: go_version
35+
run: |
36+
GO_VERSION=$(cat .palantir/go-version | sed 's/^go//' )
37+
echo "::set-output name=version::${GO_VERSION}"
38+
39+
- name: Set up Go
40+
uses: actions/setup-go@v5
41+
with:
42+
go-version: ${{ steps.go_version.outputs.version }}
43+
44+
- name: Autobuild for CodeQL
45+
uses: github/codeql-action/autobuild@v3
46+
3347
- name: Perform CodeQL Analysis
3448
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)