Skip to content

Pin the Pages actions by SHA and check the workflows with zizmor - #3

Merged
Mpdreamz merged 1 commit into
mainfrom
ci/pin-actions-zizmor
Nov 11, 2026
Merged

Mpdreamz merged 1 commit into
mainfrom
ci/pin-actions-zizmor

Conversation

@Mpdreamz

Copy link
Copy Markdown
Contributor

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.yml used actions by mutable tag, granted pages: write and id-token: write to 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.yml is pinned by SHA to the newest release of the major version it already used, with a # vX.Y.Z comment. The workflow starts with no permissions, and the deploy job asks for only contents: read, pages: write and id-token: write. The checkout no longer keeps its credentials.

zizmor on every PR

A new ci.yml calls zizmor.yml from nullean/.github, pinned to v1.3.0, on pull requests and pushes to main. mise.toml installs only zizmor and gives mise run check to run the same check locally.

Dependabot and labels

dependabot.yml updates GitHub Actions weekly, grouped, with a 7-day cooldown and the dependencies label. The release labels from nullean/.github are synced to this repository.

Agent skills

The pr skill is now the template's, which asks for exactly one release label. commit, issue and writing-style.md already matched the template.

Out of scope: the pr-labels check and release-drafter, because this repository never releases.

Verify

mise install
GH_TOKEN=$(gh auth token) mise run check

🤖 Generated with Claude Code

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]>
@Mpdreamz Mpdreamz added the ci Build and automation (patch) label Nov 11, 2026
@Mpdreamz
Mpdreamz merged commit e9ab4fd into main Nov 11, 2026
1 check passed
@Mpdreamz
Mpdreamz deleted the ci/pin-actions-zizmor branch November 11, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Build and automation (patch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant