-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.31 KB
/
codeql.yml
File metadata and controls
44 lines (41 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: CodeQL
# GitHub's free SAST. armor is a security tool; running CodeQL on every PR
# is walking the talk. Uses the security-extended query suite (broader than
# the default — appropriate for a defense-in-depth project).
#
# Path filters: scan src/ and examples/ only. tests/ contains intentionally
# vulnerable patterns (red-team corpus, fixtures) and would produce massive
# false positives. archive/ holds historical / deprecated code that is
# intentionally not maintained.
on:
pull_request:
branches: [main]
push:
branches: [main]
schedule:
# Weekly Sunday 03:00 UTC — catches new CodeQL queries against existing code.
- cron: "0 3 * * 0"
jobs:
analyze:
name: Analyze (Python)
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ["python"]
steps:
- uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
queries: security-extended
config-file: ./.github/codeql/codeql-config.yml
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"