File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -56,11 +56,16 @@ jobs:
5656 # toolchain version, bypassing CodeQL's instrumented go binary.
5757 GOTOOLCHAIN : local
5858 run : |
59- echo "CODEQL go: $CODEQL_ACTION_GO_BINARY"
60- echo "which go (before task): $(which go)"
61- go version
62- go env GOTOOLCHAIN GOROOT GOPATH
63- task build
59+ echo "=== Diagnostics ==="
60+ echo "CODEQL_EXTRACTOR_GO_BUILD_TRACING: $CODEQL_EXTRACTOR_GO_BUILD_TRACING"
61+ echo "PATH: $PATH"
62+ echo "which go: $(which go)"
63+ echo "go version: $(go version)"
64+ go env GOTOOLCHAIN GOROOT GOPATH GOVERSION
65+ echo "=== Building ==="
66+ # Run go build directly (not via task) to ensure CodeQL can trace it.
67+ # The task build command includes subtasks that may override GOTOOLCHAIN.
68+ go build ./...
6469
6570 - name : Perform CodeQL Analysis
6671 uses : github/codeql-action/analyze@v4
You can’t perform that action at this time.
0 commit comments