Skip to content

Commit c45e7b3

Browse files
author
Roman Plevka
committed
add CodeQL GH workflow to be run on PRs
1 parent ac587ec commit c45e7b3

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
paths-ignore:
9+
- "*.md"
10+
jobs:
11+
analyze:
12+
name: CodeQL Analysis
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
python-version: ["3.12"]
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Initialize CodeQL
25+
uses: github/codeql-action/init@v3
26+
with:
27+
languages: ${{ matrix.language }}
28+
29+
- name: Perform CodeQL Analysis
30+
uses: github/codeql-action/analyze@v3
31+
32+
- name: Setup Python
33+
uses: actions/setup-python@v5
34+
with:
35+
python-version: ${{ matrix.python-version }}
36+
37+
- name: Pre Commit Checks
38+
uses: pre-commit/[email protected]

0 commit comments

Comments
 (0)