-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (44 loc) · 1.74 KB
/
Copy pathcodeql.yml
File metadata and controls
50 lines (44 loc) · 1.74 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
name: CodeQL
# Advanced-setup workflow (a checked-in file) rather than GitHub's
# built-in "default setup", so this analysis lives in version control
# alongside the rest of this repository's CI (ci.yml, fuzz.yml,
# release.yml, mutation.yml, scorecard.yml) and its action pins are
# reviewable the same way theirs are. Default setup is configured
# through repository settings instead of a file, so it isn't available
# to author from here.
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
# Arbitrary; weekly on Sundays, clear of fuzz.yml's and mutation.yml's
# daily 03:00/04:00 UTC slots and scorecard.yml's own Sunday 05:00
# UTC slot.
- cron: "0 6 * * 0"
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze (python)
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# Python is interpreted, so there is nothing for autobuild (or a
# manual build step) to do: build-mode: none has CodeQL extract
# the database straight from source instead. This is the build
# mode the CodeQL Action's own docs recommend for interpreted
# languages, and it sidesteps the question of an autobuild step
# fitting this project's uv-based build at all.
- uses: github/codeql-action/init@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4.38.1
with:
languages: python
build-mode: none
- uses: github/codeql-action/analyze@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4.38.1