Skip to content

Commit 97edf9c

Browse files
Add CodeQL static analysis (#30)
1 parent 31f13b6 commit 97edf9c

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CodeQL
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
permissions:
12+
actions: read
13+
checks: write
14+
contents: read
15+
security-events: write
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
analyze:
23+
name: Analyze
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- name: Checkout
28+
id: checkout
29+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
30+
31+
- name: Initialize CodeQL
32+
id: initialize
33+
uses: github/codeql-action/init@1a7989f3955e0c69f0e0ccc14aee54a387a0fd31 # v3.28.9
34+
with:
35+
queries: security-extended
36+
languages: TypeScript
37+
source-root: src
38+
39+
- name: Autobuild
40+
id: autobuild
41+
uses: github/codeql-action/autobuild@1a7989f3955e0c69f0e0ccc14aee54a387a0fd31 # v3.28.9
42+
43+
- name: Perform CodeQL Analysis
44+
id: analyze
45+
uses: github/codeql-action/analyze@1a7989f3955e0c69f0e0ccc14aee54a387a0fd31 # v3.28.9

0 commit comments

Comments
 (0)