Skip to content

feat: templates and zizmor fallback for new repositories - #5

Merged
rubenhensen merged 2 commits into
mainfrom
rhensen/yiv-401-zizmor-default
Oct 23, 2026
Merged

rubenhensen merged 2 commits into
mainfrom
rhensen/yiv-401-zizmor-default

Conversation

@rubenhensen

@rubenhensen rubenhensen commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Since 22 October, every new repository in the org gets shared-ci=v1, so Status checks passed is required before its first pull request can merge. This makes that easy:

  • templates/workflows/: thin callers of the shared workflows to copy into a new repository: Status checks for Go and Node (ending in the Status checks passed gate), Delivery, Image rescan, Terraform, release-please, Go release, npm publish, PR title, GHCR clean-up and Scorecard. They are Martijn's v1.1 templates. The $default-branch placeholder is replaced by main, because that placeholder only works through the "New workflow" button. Self CI now lints them too. They live here instead of in the org .github repository, which stays private; GitHub only offers templates from a private .github to private repositories.
  • workflow-lint.yml: without a zizmor-config input or a .github/zizmor.yml, a repository now gets the shared policy (privacybydesign/* by tag, everything else by SHA). zizmor's own defaults reject @v1, which would fail a fresh repository on its first pull request.
  • README: a "Starting a new repository" section.

CHANGELOG: v1.1.3.

Part of YIV-401.

zizmor's default policy requires a SHA for privacybydesign/* too, so a new
repository set up from the workflow templates failed workflow-lint on its
@v1 references until it copied templates/zizmor.yml. Without a config of
its own, a repository now gets the shared policy.
templates/workflows/ holds thin callers of the shared workflows (Status
checks for Go and Node, Delivery, Image rescan, Terraform, releases), to
copy into a new repository. They replace workflow templates in the org
.github repository, which stays private and so could not serve the
public repositories. Self CI lints them along with the workflows.
@rubenhensen rubenhensen changed the title feat: fall back to the shared zizmor policy in workflow-lint feat: templates and zizmor fallback for new repositories Oct 23, 2026
@rubenhensen
rubenhensen merged commit 263b130 into main Oct 23, 2026
4 checks passed
@rubenhensen
rubenhensen deleted the rhensen/yiv-401-zizmor-default branch October 23, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant