-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.15 KB
/
codeql.yml
File metadata and controls
48 lines (39 loc) · 1.15 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
45
46
47
48
name: "CodeQL Python"
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
# Every night at 11:00 PM Eastern / 04:00 AM UTC
- cron: '0 4 * * *'
jobs:
analyze:
name: CodeQL Python Analysis
runs-on: ubuntu-latest
permissions:
# Required to upload code scanning results
security-events: write
# Only needed if you pull in private/internal packs
packages: read
# Required to read your repo’s contents
actions: read
contents: read
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Python + Environment
uses: ./.github/actions/setup-python-env
- name: Initialize CodeQL for Python
uses: github/codeql-action/init@v4
with:
languages: python
# Python is interpreted; no build step required
build-mode: none
queries: +security-extended,security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
# Tag results clearly for Python
category: "/language:python"