Skip to content

Commit cf7cc1e

Browse files
committed
ci: add zizmor config exempting first-party reusables
zizmor's default unpinned-uses policy is blanket hash-pin, which flags every netresearch/* reusable referenced @main — including the scanner jobs added in this PR. First-party reusables track @main by policy so fixes propagate to all consumers, so they are exempted to ref-pin here. Third-party actions remain hash-pin enforced. Byte-identical to the shared template config (netresearch/.github#329). Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>
1 parent e19bb85 commit cf7cc1e

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/zizmor.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# zizmor (https://zizmor.sh) configuration
2+
#
3+
# Tunes zizmor to Netresearch conventions so the audit reports only
4+
# actionable findings. Third-party actions remain hash-pin enforced.
5+
rules:
6+
unpinned-uses:
7+
config:
8+
policies:
9+
# First-party reusable workflows track @main by policy and are
10+
# never SHA-pinned, so fixes propagate to all consumers.
11+
"netresearch/*": ref-pin
12+
# Everything else must be pinned to a full commit SHA.
13+
"*": hash-pin

0 commit comments

Comments
 (0)