Skip to content

Commit e79fc6b

Browse files
ci: Add codeql.yml
1 parent 16fbf18 commit e79fc6b

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
name: CodeQL
3+
4+
on:
5+
push:
6+
branches:
7+
- "main"
8+
pull_request:
9+
branches:
10+
- "main"
11+
12+
concurrency:
13+
group: ${{ github.ref }}-${{ github.workflow }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
skip-duplicate-actions:
18+
name: Skip Duplicate Actions
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: fkirc/skip-duplicate-actions@master
22+
with:
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
cancel_others: true
25+
concurrent_skipping: never
26+
27+
CodeQL-analyze:
28+
name: CodeQL Analyze
29+
runs-on: ubuntu-latest
30+
permissions:
31+
actions: read
32+
contents: read
33+
security-events: write
34+
35+
steps:
36+
- name: Checkout repository
37+
uses: actions/checkout@v3
38+
39+
- name: Initialize CodeQL
40+
uses: github/codeql-action/init@v2
41+
with:
42+
languages: python
43+
queries: +security-and-quality
44+
45+
- name: Perform CodeQL Analysis
46+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)