Repository navigation
Pin the Pages actions by SHA and check the workflows with zizmor - #3
Merged
Merged
Conversation
The deploy job now holds the Pages permissions itself, its checkout keeps no credentials, and a ci workflow runs nullean/.github's zizmor on every PR. Dependabot keeps the action pins current, and `mise run check` runs zizmor locally. The pr skill is the template's, which asks for a release label. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Pages deployment now runs SHA-pinned actions with the least permissions it needs, and every PR runs zizmor on the workflows. The published site is unchanged.
Prompt summary: Bring every nullean repository onto one standard baseline: SHA-pinned actions, zizmor, the shared labels and agent skills, and dependabot. nullean.github.io is a static site that never releases, so it gets the workflow and tooling parts only, with no .NET and no release-drafter.
Why
pages.ymlused actions by mutable tag, grantedpages: writeandid-token: writeto the whole workflow, and left the checkout's token on disk. Nothing checked the workflows, and nothing kept the action versions current.What
Pinned, least-privilege deploy
Each action in
pages.ymlis pinned by SHA to the newest release of the major version it already used, with a# vX.Y.Zcomment. The workflow starts with no permissions, and thedeployjob asks for onlycontents: read,pages: writeandid-token: write. The checkout no longer keeps its credentials.zizmor on every PR
A new
ci.ymlcallszizmor.ymlfrom nullean/.github, pinned tov1.3.0, on pull requests and pushes tomain.mise.tomlinstalls only zizmor and givesmise run checkto run the same check locally.Dependabot and labels
dependabot.ymlupdates GitHub Actions weekly, grouped, with a 7-day cooldown and thedependencieslabel. The release labels from nullean/.github are synced to this repository.Agent skills
The
prskill is now the template's, which asks for exactly one release label.commit,issueandwriting-style.mdalready matched the template.Out of scope: the
pr-labelscheck and release-drafter, because this repository never releases.Verify
mise install GH_TOKEN=$(gh auth token) mise run check🤖 Generated with Claude Code