-
Notifications
You must be signed in to change notification settings - Fork 434
41 lines (35 loc) · 940 Bytes
/
codeql.yml
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
name: "CodeQL"
on:
push:
branches: '*'
pull_request:
branches: '*'
paths-ignore:
- '**/*.md'
- '**/*.rst'
schedule:
- cron: "3 2 * * 2"
jobs:
analyze:
timeout-minutes: 20
name: Analyze
runs-on: ubuntu-20.04
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies to help the code scanner
run: pip install .[dev]
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: python
config-file: ./.github/codeql/codeql-config.yml
queries: +security-and-quality
# Manually install deps, as CodeQL tries to install the empty requirements.txt
setup-python-dependencies: false
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2