Skip to content

Commit d081987

Browse files
committed
ci: add CodeQL workflow so it runs on fork PRs
The default setup CodeQL doesn't trigger on PRs from forks, which blocks merging when CodeQL is a required status check.
1 parent 1eb8c6e commit d081987

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
permissions:
12+
contents: read
13+
security-events: write
14+
15+
jobs:
16+
analyze:
17+
name: Analyze
18+
runs-on: ubuntu-24.04-arm
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-go@v5
22+
with:
23+
go-version-file: go.mod
24+
- uses: github/codeql-action/init@v3
25+
with:
26+
languages: go
27+
- uses: github/codeql-action/autobuild@v3
28+
- uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)