Repository navigation
57 lines (48 loc) · 1.48 KB
/
Copy pathcodeql.yml
File metadata and controls
57 lines (48 loc) · 1.48 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
49
50
51
52
53
54
55
56
57
name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
paths:
- "src/**"
- "packages/**"
- "pyproject.toml"
- ".github/workflows/codeql.yml"
schedule:
- cron: "17 3 * * 2"
workflow_dispatch:
permissions:
actions: read
contents: read
security-events: write
concurrency:
group: "codeql-${{ github.event.pull_request.number || github.ref }}"
cancel-in-progress: true
jobs:
analyze:
name: Analyze (${{ matrix.language }})
# NOTE: Uses GitHub-hosted Windows runner.
# Migration back to GitHub-hosted runners remains tracked in issue #90.
runs-on: windows-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
language: [python]
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.12"
- name: Initialize CodeQL
uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
with:
languages: ${{ matrix.language }}
queries: security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18