-
-
Notifications
You must be signed in to change notification settings - Fork 10
39 lines (33 loc) · 1.2 KB
/
codeql.yml
File metadata and controls
39 lines (33 loc) · 1.2 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:
schedule:
- cron: "0 6 * * 1" # Weekly on Monday at 06:00 UTC
workflow_dispatch:
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: python
queries: security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@v4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:python"
# This repo currently has GitHub CodeQL "Default setup" enabled.
# When default setup is enabled, uploaded SARIF results from an advanced configuration
# (i.e., this workflow using github/codeql-action) are rejected with:
# "CodeQL analyses from advanced configurations cannot be processed when the default setup is enabled"
# Disabling upload here keeps the workflow check green while Default setup handles code scanning uploads.
upload: false