borg/.github/zizmor.yml
Thomas Waldmann 417c6c7d9c
CI: move the accepted zizmor findings into .github/zizmor.yml
The inline "# zizmor: ignore[...]" comments had to go after the version
comment on the `uses:` line, which left two comments there:

    uses: actions/cache@55cc8345...  # v6.1.0  # zizmor: ignore[cache-poisoning]

Dependabot maintains those version comments when it bumps a pin (see
.github/dependabot.yml, the github-actions ecosystem is updated weekly),
and zizmor's own ref-version-mismatch audit stopped recognising the
version, so the line is better left in the plain "@sha  # version" form.

The explanations stay in the workflows next to what they explain; the new
config file only records which findings were accepted.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-29 22:56:04 +02:00

33 lines
1.3 KiB
YAML

# Configuration for zizmor (https://docs.zizmor.sh/), the GitHub Actions
# static analyser. Run it over this repository with:
#
# zizmor .
#
# The findings listed here are the ones that were looked at and accepted. The
# reasoning lives next to the code it is about, in the workflow files - this
# file only says "yes, we know". Ignores are deliberately kept as whole-file
# entries rather than file:line, so that they do not silently stop matching
# whenever the surrounding workflow shifts by a line.
rules:
artipacked:
ignore:
# backport.yml is the one workflow that must keep the credentials
# actions/checkout leaves behind: korthout/backport-action pushes the
# backport branch with a plain `git push`.
- backport.yml
dangerous-triggers:
ignore:
# backport.yml needs pull_request_target for a writable token, and never
# checks out or runs pull request code. See the comment in the workflow.
- backport.yml
cache-poisoning:
ignore:
# The cache steps in ci.yml are skipped on tag pushes, which is when the
# release binaries are built and attested - see the `if:` on each of them.
# zizmor flags any actions/cache in a tag-triggered workflow regardless.
# A new cache step in ci.yml needs that same `if:`; this ignore will not
# tell you about it.
- ci.yml