Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,20 @@ on:
schedule:
- cron: "0 6 * * 1"

# Default-deny at the top level (Scorecard Token-Permissions); the analyze
# job below re-grants exactly what CodeQL needs.
permissions:
contents: read

jobs:
analyze:
name: Analyze
# PINNED DELIBERATELY — do not replace with a bare `name: Analyze`.
# GitHub derives an unnamed matrix job's title from ALL of its matrix
# keys, so adding a second key later silently renames this job. Where a
# branch ruleset requires "Analyze (actions)", a renamed job makes that
# rule UNSATISFIABLE rather than failing: PRs sit BLOCKED with every
# check green, and only the merge attempt names the missing context.
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
permissions:
security-events: write
Expand All @@ -20,16 +31,18 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [actions]
# `actions` alone scans workflow YAML and ZERO application source.
language: [actions, python]

steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7

- name: Initialize CodeQL
uses: github/codeql-action/init@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4
with:
languages: ${{ matrix.language }}
build-mode: none

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4
Expand Down
Loading