Skip to content

Commit 0c1afd0

Browse files
authored
chore/COMPASS-9457 add codeql (#68)
1 parent 33a30ef commit 0c1afd0

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
schedule:
11+
- cron: '30 14 * * 4'
12+
13+
jobs:
14+
analyze:
15+
name: Analyze
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 360
18+
permissions:
19+
actions: read
20+
contents: read
21+
security-events: write
22+
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
language:
27+
- javascript-typescript
28+
- actions
29+
30+
steps:
31+
- name: Checkout repository
32+
uses: actions/checkout@v4
33+
with:
34+
submodules: recursive
35+
36+
- name: Initialize CodeQL
37+
uses: github/codeql-action/init@v3
38+
with:
39+
languages: ${{ matrix.language }}
40+
config: |
41+
paths-ignore:
42+
- 'test-setup.ts'
43+
- 'src/**/*.test.ts'
44+
- 'src/**/*.spec.ts'
45+
- 'src/**/*.test.tsx'
46+
- 'src/**/*.spec.tsx'
47+
- 'src/**/*.stories.tsx'
48+
49+
- name: Perform CodeQL Analysis
50+
uses: github/codeql-action/analyze@v3
51+
with:
52+
category: '/language:${{matrix.language}}'

0 commit comments

Comments
 (0)