-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (37 loc) · 1.15 KB
/
Copy pathcodeql.yml
File metadata and controls
42 lines (37 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
name: CodeQL
# Static analysis on every change to the default branch, on pull requests
# targeting it, and once a week so that newly published queries reach code
# that has not changed.
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Monday 04:32 UTC. An off-the-hour minute keeps the job out of the
# scheduling spike that lands on every :00.
- cron: "32 4 * * 1"
jobs:
analyze:
name: Analyze Python
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
# Uploading results to the Security tab is what security-events grants.
security-events: write
contents: read
actions: read
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: python
# Python is interpreted, so CodeQL reads the sources directly and
# the package's heavy optional extras never have to be installed.
build-mode: none
- name: Analyze
uses: github/codeql-action/analyze@v3
with:
category: "/language:python"