Skip to content

Commit ead2f4b

Browse files
committed
test with simple build
1 parent 148882d commit ead2f4b

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
@@ -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

0 commit comments

Comments
 (0)