-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (33 loc) · 1.06 KB
/
Copy pathcodeql.yml
File metadata and controls
39 lines (33 loc) · 1.06 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
name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Run weekly on Monday at 06:00 UTC (catches new vulnerability patterns)
- cron: "0 6 * * 1"
permissions: read-all
jobs:
analyze:
name: Analyze Python
runs-on: ubuntu-latest
# CodeQL code scanning is free for public repos only.
# continue-on-error keeps CI green while the repo is private;
# remove this line after going public.
continue-on-error: true
permissions:
security-events: write
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialize CodeQL
uses: github/codeql-action/init@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0
with:
languages: python
# Use extended queries for deeper analysis
queries: +security-extended
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0
with:
category: "/language:python"