Skip to content

chore(ci): harden workflows, enforce zizmor - #47

Merged
JustMaris merged 1 commit into
mainfrom
claude/zizmor-hardening
Sep 24, 2026
Merged

JustMaris merged 1 commit into
mainfrom
claude/zizmor-hardening

Conversation

@JustMaris

@JustMaris JustMaris commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Permissions: explicit read-only permissions: on workflows that had none. The org default is already read-only; this makes it visible and drops read access to other scopes.
  • Checkout credentials: checkouts no longer leave the token in .git/config (persist-credentials: false); nothing here pushes.
  • Pins: third-party actions are SHA-pinned to the commits their tags point to today. Dependabot keeps them current.
  • zizmor: new job (reusable-actions zizmor.yml), gated by Required checks passed. The only accepted finding is the auto-merge workflow_run trigger, in .github/zizmor.yml.

Test plan

  • YAML parses, actionlint passes, and zizmor reports no findings at low and above with this repo's own config
  • CI passes on this PR, including the new zizmor job

- Explicit read-only `permissions:` on workflows that had none (the org default is read-only already; this makes it visible and drops read access to other scopes).

- Checkouts that never push no longer leave the token in .git/config (`persist-credentials: false`); ones that push say so explicitly.

- Third-party actions SHA-pinned at the commits their tags point to today; Dependabot keeps them current.

- New zizmor job (reusable-actions zizmor.yml) gated by Required checks passed, so new findings block merges; accepted ones are in .github/zizmor.yml.
@JustMaris
JustMaris merged commit e262034 into main Sep 24, 2026
8 checks passed
@JustMaris
JustMaris deleted the claude/zizmor-hardening branch September 24, 2026 10:07
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