Skip to content

Commit 2d2fa39

Browse files
committed
chore(ci): add CodeQL
1 parent 46cc44c commit 2d2fa39

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CodeQL
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/*.yml'
7+
- '**.py'
8+
push:
9+
branches:
10+
- main
11+
12+
permissions: {}
13+
14+
jobs:
15+
analysis:
16+
name: Analysis
17+
runs-on: ubuntu-latest
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
language:
22+
- actions
23+
- python
24+
permissions:
25+
contents: read
26+
security-events: write
27+
steps:
28+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
29+
with:
30+
persist-credentials: false
31+
- uses: github/codeql-action/init@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
32+
with:
33+
languages: ${{ matrix.language }}
34+
build-mode: none
35+
- uses: github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
36+
with:
37+
category: /language:${{ matrix.language }}

0 commit comments

Comments
 (0)