Skip to content

pull: refresh corpus + outcomes (2026-08-13) #1684

pull: refresh corpus + outcomes (2026-08-13)

pull: refresh corpus + outcomes (2026-08-13) #1684

Workflow file for this run

name: codeql
# CodeQL code scanning for the Python package. The Actions workflows
# themselves are covered separately by zizmor + actionlint in lint-actions.yml,
# so only `python` is analyzed here. Results land in the repo's Security tab.
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Weekly, off-peak; a scheduled scan catches advisories published after a
# change merges, not just code as it lands.
- cron: "27 4 * * 4"
permissions: {}
concurrency:
group: codeql-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: analyze (python)
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
# Upload results to code scanning; read the tree to analyze it.
security-events: write
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
with:
languages: python
build-mode: none
queries: security-and-quality
# Filters one noisy, redundant rule (py/ineffectual-statement); see the
# file for the rationale. The suite otherwise stays fully enabled.
config-file: ./.github/codeql/codeql-config.yml
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
with:
category: "/language:python"