security(ci): add security-codeql.yml
davoodmehraban89 committed
Oct 14, 2026 at 22:32 UTC
47a071f6bbd9227ec1f7b78106fa9eb98eae6c29
1 file changed
+50
.github/workflows/security-codeql.yml
new
+50
@@ -0,0 +1,50 @@
1
+name: Security / CodeQL
2
+
3
+on:
4
+ pull_request:
5
+ branches: [main]
6
+ paths:
7
+ - "commerce/**"
8
+ - "packages/**"
9
+ - "scripts/**"
10
+ - ".github/codeql/**"
11
+ - ".github/workflows/security-codeql.yml"
12
+ push:
13
+ branches: [main]
14
+ paths:
15
+ - "commerce/**"
16
+ - "packages/**"
17
+ - "scripts/**"
18
+ - ".github/codeql/**"
19
+ - ".github/workflows/security-codeql.yml"
20
+ schedule:
21
+ - cron: "23 4 * * 1"
22
+ workflow_dispatch:
23
+
24
+permissions:
25
+ contents: read
26
+ security-events: write
27
+ actions: read
28
+
29
+concurrency:
30
+ group: security-codeql-${{ github.ref }}
31
+ cancel-in-progress: true
32
+
33
+jobs:
34
+ analyze:
35
+ name: CodeQL JavaScript / TypeScript
36
+ runs-on: ubuntu-latest
37
+ timeout-minutes: 120
38
+ steps:
39
+ - name: Checkout source
40
+ uses: actions/checkout@v6
41
+ - name: Initialize CodeQL
42
+ uses: github/codeql-action/init@v4
43
+ with:
44
+ languages: javascript-typescript
45
+ build-mode: none
46
+ config-file: ./.github/codeql/codeql-config.yml
47
+ - name: Analyze and publish code scanning results
48
+ uses: github/codeql-action/analyze@v4
49
+ with:
50
+ category: /language:javascript-typescript