Skip to content

Commit 18da7eb

Browse files
committed
Call tasks directly instead of through Taskfile
1 parent ead2f4b commit 18da7eb

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/codeql.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,26 @@ jobs:
5151
- name: Install Taskfile support
5252
uses: arduino/setup-task@v2
5353

54-
- name: Build
54+
- name: Build (CodeQL-instrumented)
5555
shell: bash
5656
env:
57-
# Prevent Go toolchain re-exec which breaks CodeQL tracing.
58-
# When GOTOOLCHAIN is not "local", Go may re-exec to a different
59-
# toolchain version, bypassing CodeQL's instrumented go binary.
6057
GOTOOLCHAIN: local
58+
GOWORK: off
59+
GO_VERSIONS: "1.19"
60+
COMPILECHECK_USE_DOCKER: "0"
6161
run: |
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.
7162
go build ./...
63+
go build ${BUILD_TAGS} ./...
64+
go test -short ${BUILD_TAGS} -run ^$$ ./...
65+
66+
go test -v ./internal/test/compilecheck -run '^TestCompileCheck/golang:1.19$'
67+
68+
GOOS=linux GOARCH=386 go build ./...
69+
GOOS=linux GOARCH=arm go build ./...
70+
GOOS=linux GOARCH=arm64 go build ./...
71+
GOOS=linux GOARCH=amd64 go build ./...
72+
GOOS=linux GOARCH=ppc64le go build ./...
73+
GOOS=linux GOARCH=s390x go build ./...
7274
7375
- name: Perform CodeQL Analysis
7476
uses: github/codeql-action/analyze@v4

0 commit comments

Comments
 (0)