Skip to content

Commit fabb55e

Browse files
committed
Add explict build instructions for codeQL
1 parent 009f82b commit fabb55e

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/codeql.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,19 @@ jobs:
4646
- name: Install Taskfile support
4747
uses: arduino/setup-task@v2
4848

49-
- shell: bash
50-
run: task build
49+
- name: Build
50+
shell: bash
51+
env:
52+
# Prevent Go toolchain re-exec which breaks CodeQL tracing.
53+
# When GOTOOLCHAIN is not "local", Go may re-exec to a different
54+
# toolchain version, bypassing CodeQL's instrumented go binary.
55+
GOTOOLCHAIN: local
56+
run: |
57+
echo "CODEQL go: $CODEQL_ACTION_GO_BINARY"
58+
echo "which go (before task): $(which go)"
59+
go version
60+
go env GOTOOLCHAIN GOROOT GOPATH
61+
task build
5162
5263
- name: Perform CodeQL Analysis
5364
uses: github/codeql-action/analyze@v4

0 commit comments

Comments
 (0)