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 @@ -59,11 +59,16 @@ jobs:
5959 # toolchain version, bypassing CodeQL's instrumented go binary.
6060 GOTOOLCHAIN : local
6161 run : |
62- echo "CODEQL go: $CODEQL_ACTION_GO_BINARY"
63- echo "which go (before task): $(which go)"
64- go version
65- go env GOTOOLCHAIN GOROOT GOPATH
66- task build
62+ echo "=== Diagnostics ==="
63+ echo "CODEQL_EXTRACTOR_GO_BUILD_TRACING: $CODEQL_EXTRACTOR_GO_BUILD_TRACING"
64+ echo "PATH: $PATH"
65+ echo "which go: $(which go)"
66+ echo "go version: $(go version)"
67+ go env GOTOOLCHAIN GOROOT GOPATH GOVERSION
68+ echo "=== Building ==="
69+ # Run go build directly (not via task) to ensure CodeQL can trace it.
70+ # The task build command includes subtasks that may override GOTOOLCHAIN.
71+ go build ./...
6772
6873 - name : Perform CodeQL Analysis
6974 uses : github/codeql-action/analyze@v4
You can’t perform that action at this time.
0 commit comments