Skip to content

Commit b431d6e

Browse files
committed
ci: add CodeQL config
1 parent 00666ff commit b431d6e

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "CodeQL"
2+
on:
3+
push:
4+
branches: ['main']
5+
pull_request:
6+
branches: ['main']
7+
schedule:
8+
- cron: '00 4 * * 2'
9+
jobs:
10+
analyze:
11+
name: Analyze
12+
runs-on: ubuntu-latest
13+
permissions:
14+
security-events: write
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
language: ['python']
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
22+
- name: Initialize CodeQL
23+
uses: github/codeql-action/init@v3
24+
with:
25+
languages: ${{ matrix.language }}
26+
config: |
27+
paths-ignore:
28+
- 'examples/snippets/**/*.py'
29+
- name: Autobuild
30+
uses: github/codeql-action/autobuild@v3
31+
- name: Perform CodeQL Analysis
32+
uses: github/codeql-action/analyze@v3
33+
with:
34+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)