-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1000 Bytes
/
codeql.yml
File metadata and controls
42 lines (35 loc) · 1000 Bytes
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
# SPDX-License-Identifier: Apache-2.0
name: CodeQL
on:
push:
branches: [ main, staging ]
pull_request:
branches: [ main, master, staging ]
workflow_dispatch:
schedule:
- cron: '0 6 * * 1'
jobs:
analyze:
name: Analyze (python)
runs-on: ubuntu-latest
permissions:
security-events: write
contents: read
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: python
config-file: ./.github/codeql/codeql-config.yml
debug: true
# For pure Python, no build is necessary. If you later add native code
# or need dependency installation for better analysis, add steps here.
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3