Skip to content

Commit 2133d17

Browse files
authored
Merge pull request #1492 from crazy-max/codeql
ci: enable SAST scanning with CodeQL
2 parents a3f8b56 + bebcd8f commit 2133d17

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+
push:
5+
branches:
6+
- 'master'
7+
- 'releases/v*'
8+
pull_request:
9+
10+
permissions:
11+
actions: read
12+
contents: read
13+
security-events: write
14+
15+
env:
16+
NODE_VERSION: "24"
17+
18+
jobs:
19+
analyze:
20+
runs-on: ubuntu-latest
21+
steps:
22+
-
23+
name: Checkout
24+
uses: actions/checkout@v6
25+
-
26+
name: Enable corepack
27+
run: |
28+
corepack enable
29+
yarn --version
30+
-
31+
name: Set up Node
32+
uses: actions/setup-node@v6
33+
with:
34+
node-version: ${{ env.NODE_VERSION }}
35+
-
36+
name: Initialize CodeQL
37+
uses: github/codeql-action/init@v4
38+
with:
39+
languages: javascript-typescript
40+
build-mode: none
41+
-
42+
name: Perform CodeQL Analysis
43+
uses: github/codeql-action/analyze@v4
44+
with:
45+
category: "/language:javascript-typescript"

0 commit comments

Comments
 (0)