Skip to content

Commit d889c42

Browse files
committed
docs(zizmor): describe the rule that is actually enforced
The comment above the unpinned-uses policy said netresearch-owned reusables "track @main by policy and are never SHA-pinned". zizmor does not check which ref is used — ref-pin accepts any branch or tag, and the @main convention is ours, not the rule's. Reworded so the comment matches what the policy below enforces. Synced from netresearch/.github#336. Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>
1 parent 3874340 commit d889c42

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/zizmor.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ rules:
77
config:
88
policies:
99
# First-party `uses:` — reusable workflows AND composite actions —
10-
# track @main by policy and are never SHA-pinned, so a fix propagates
11-
# to every consumer without a bump in dozens of repos.
10+
# are ref-pinned rather than SHA-pinned: a branch or a tag, in practice
11+
# @main. That is what lets a fix reach every consumer without a bump in
12+
# dozens of repos. The rule below enforces the ref-vs-SHA distinction;
13+
# which ref is convention, not something zizmor checks.
1214
"netresearch/*": ref-pin
1315
# Everything else must be pinned to a full commit SHA.
1416
"*": hash-pin

0 commit comments

Comments
 (0)