forked from ChelseaKR/queer-the-stacks
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.72 KB
/
Copy pathcodeql.yml
File metadata and controls
52 lines (45 loc) · 1.72 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
name: codeql
# CodeQL SAST across the Python app and the GitHub Actions workflows themselves
# (SECURITY-AND-SUPPLY-CHAIN-STANDARD SEC-08, CI-CD-STANDARD CICD-19/20). Runs
# on every pull request into main plus a weekly schedule so newly disclosed
# query patterns are caught even without a code change (CI-CD-STANDARD §11e:
# the PR run already covers what a push-to-main run would re-analyze). Code
# scanning is available because this is an open-source repository.
on:
pull_request:
branches: [main]
schedule:
- cron: "19 4 * * 1"
workflow_dispatch: {}
permissions:
contents: read
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
permissions:
actions: read # required to analyze the `actions` language
contents: read
security-events: write # required to upload SARIF results
strategy:
fail-fast: false
matrix:
# `python` covers ingest/recommender/app + tests; `actions` audits the
# workflow YAML itself (injection, permission scoping, dangerous
# triggers) — complements the zizmor job in zizmor.yml.
language: [python, actions]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
with:
category: "/language:${{ matrix.language }}"