Skip to content

Commit ccad289

Browse files
authored
ci: add CodeQL workflow for code scanning (#316)
The main branch ruleset requires CodeQL results but no workflow existed to produce them, blocking all PR merges.
1 parent 772e0d3 commit ccad289

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
pull_request:
7+
branches: ['main']
8+
9+
# Cancel in-progress runs when a new commit is pushed
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
analyze:
16+
name: Analyze
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 15
19+
permissions:
20+
security-events: write
21+
contents: read
22+
23+
steps:
24+
- uses: actions/checkout@v6
25+
26+
- name: Initialize CodeQL
27+
uses: github/codeql-action/init@v3
28+
with:
29+
languages: javascript-typescript
30+
31+
- name: Perform CodeQL Analysis
32+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)