Skip to content

Commit c7ce87f

Browse files
committed
test with simple build
1 parent 44f559d commit c7ce87f

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/codeql.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)