GitNexus/.github/workflows/workflow-lint.yml
dependabot[bot] c8683d58fc
chore(deps): bump github/codeql-action from 3.35.3 to 4.35.3 (#1390)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.35.3 to 4.35.3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](0daab03d71...e46ed2cbd0)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.35.3
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-07 09:54:17 +01:00

58 lines
1.9 KiB
YAML

name: Workflow Lint (zizmor)
# Lints .github/workflows/** for known GitHub Actions security misconfigurations:
# unpinned Actions, dangerous ${{ ... }} interpolation in run: blocks,
# missing per-job permissions:, etc.
#
# Scoped to PRs that touch .github/** only — keeps off the typical PR critical path.
on:
pull_request:
branches: [main]
paths:
- '.github/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
zizmor:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
security-events: write
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: '3.12'
- name: Install zizmor
# Pinned — resolves to whatever's latest on PyPI otherwise.
# Bump via Dependabot pip ecosystem (see .github/dependabot.yml).
run: pipx install zizmor==1.24.1
# Initial threshold: medium. High+ findings fail the job; medium findings
# appear in the Security tab without blocking. Tune after first run.
# Per-rule exemptions for pre-existing intentional patterns live in
# .github/zizmor.yml (each carries a documented mitigation).
- name: Run zizmor
run: zizmor --config .github/zizmor.yml --format sarif --min-severity medium . > zizmor.sarif
continue-on-error: true
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3
with:
sarif_file: zizmor.sarif
category: zizmor
- name: Fail on high+ findings
run: zizmor --config .github/zizmor.yml --min-severity high .