Skip to content

Commit 3ff9b5f

Browse files
authored
ci: Run CodeQL (#540)
1 parent 2aa34ff commit 3ff9b5f

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/codeql/codeql-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
paths-ignore:
2+
- src/website/shared/migrations

.github/workflows/codeql.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "CodeQL"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: main
7+
workflow_dispatch:
8+
9+
permissions:
10+
actions: read
11+
contents: read
12+
security-events: write
13+
14+
jobs:
15+
codeql:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
- uses: cachix/install-nix-action@v29
21+
- name: Initialize CodeQL
22+
uses: github/codeql-action/init@v3
23+
with:
24+
languages: "python"
25+
queries: security-and-quality
26+
config-file: .github/codeql/codeql-config.yaml
27+
- name: Perform CodeQL Analysis
28+
uses: github/codeql-action/analyze@v3
29+
with:
30+
category: "/language:python"

0 commit comments

Comments
 (0)