Skip to content

chore(zizmor): drop the local policy copy, the reusable supplies it - #47

Merged
CybotTM merged 1 commit into
mainfrom
chore/sync-zizmor-comment
Aug 2, 2026
Merged

chore(zizmor): drop the local policy copy, the reusable supplies it#47
CybotTM merged 1 commit into
mainfrom
chore/sync-zizmor-comment

Conversation

@CybotTM

@CybotTM CybotTM commented Aug 2, 2026

Copy link
Copy Markdown
Member

Removes .github/zizmor.yml. netresearch/.github#339 makes the zizmor reusable fetch the organisation policy at run time when a repo has no file of its own, and drops it from all five templates, so this copy no longer has a job.

It is not harmless to leave behind. A local file takes precedence over the fetched one, so this repository would keep running an old policy the next time the shared one actually changes — which is exactly how a two-line policy ended up needing a pull request in 54 repositories to reword a comment.

The scan result does not change: the same policy is applied, from one place instead of 54. A repository that genuinely needs a different policy opts out by keeping its own .github/zizmor.yml; this one was byte-identical to the template, which was verified before deleting.

This pull request previously carried the comment rewording from #336. That became pointless once the file itself moved, so the branch was rewritten to delete it instead.

Copilot AI review requested due to automatic review settings August 2, 2026 16:15
@github-actions github-actions Bot added the ci label Aug 2, 2026
@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the .github/zizmor.yml documentation comment to accurately describe what zizmor’s ref-pin policy actually enforces (ref-pinned vs SHA-pinned), while keeping the underlying unpinned-uses policy behavior unchanged.

Changes:

  • Rewords the first-party uses: policy comment to clarify that zizmor enforces “ref vs SHA” pinning, not which specific ref (e.g., @main).
  • Preserves the existing policy mapping ("netresearch/*": ref-pin, "*": hash-pin) with no functional changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

netresearch/.github#339 makes the zizmor reusable fetch the organisation policy
at run time when a repo has no .github/zizmor.yml of its own, and removes the
file from the templates. Keeping a copy here would silently win over the shared
policy the next time it really changes, which is how this file came to differ
across the fleet in the first place.

The scan itself is unchanged: the same policy is applied, from one place.

Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>
@CybotTM
CybotTM force-pushed the chore/sync-zizmor-comment branch from b75c097 to 27314c9 Compare August 2, 2026 17:50
@CybotTM CybotTM changed the title docs(zizmor): describe the rule that is actually enforced chore(zizmor): drop the local policy copy, the reusable supplies it Aug 2, 2026
@sonarqubecloud

sonarqubecloud Bot commented Aug 2, 2026

Copy link
Copy Markdown

@CybotTM
CybotTM requested a review from Copilot August 2, 2026 17:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@CybotTM
CybotTM merged commit cd1f52b into main Aug 2, 2026
23 checks passed
@CybotTM
CybotTM deleted the chore/sync-zizmor-comment branch August 2, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants