Skip to content

Commit 20e43a8

Browse files
cpcloudclaude
andcommitted
fix(ci): restore CodeQL manual build mode for Go
Go's CodeQL extractor does not support build-mode: none. Restore the manual build mode with setup-go and explicit go build step, matching the original codeql.yml configuration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 77d87aa commit 20e43a8

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/security.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,25 @@ jobs:
6161
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
6262
permissions:
6363
security-events: write
64+
env:
65+
CGO_ENABLED: "0"
6466
steps:
6567
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
6668
with:
6769
persist-credentials: false
6870

71+
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6
72+
with:
73+
go-version: "1.25"
74+
6975
- name: Initialize CodeQL
7076
uses: github/codeql-action/init@9e907b5e64f6b83e7804b09294d44122997950d6 # v4.32.3
7177
with:
7278
languages: go
73-
build-mode: none
79+
build-mode: manual
80+
81+
- name: Build
82+
run: go build ./...
7483

7584
- name: Perform CodeQL analysis
7685
uses: github/codeql-action/analyze@9e907b5e64f6b83e7804b09294d44122997950d6 # v4.32.3

0 commit comments

Comments
 (0)