Skip to content

fix(ci): replace pip install with native zizmor binary#22

Open
John-David Dalton (jdalton) wants to merge 1 commit intomasterfrom
fix/native-zizmor-binary
Open

fix(ci): replace pip install with native zizmor binary#22
John-David Dalton (jdalton) wants to merge 1 commit intomasterfrom
fix/native-zizmor-binary

Conversation

@jdalton
Copy link
Copy Markdown
Contributor

Summary

Replaces pip install zizmor==1.23.1 with a direct download of the zizmor native binary from GitHub releases. The binary is SHA-256 checksum-verified before use.

What changed

  • No more Python dependency — zizmor is a Rust binary that ships standalone builds for all platforms (Linux x64/arm64, macOS x64/arm64, Windows x64). No pip, no Python runtime needed.
  • Checksum verification — each platform binary is verified against a hardcoded SHA-256 hash. Tampered release assets fail CI immediately.
  • secrets.GITHUB_TOKENgithub.token — same value, but avoids a zizmor secrets-outside-env warning.

zizmor v1.23.1 checksums (SHA-256)

Platform Checksum
linux-x86_64 67a8df0a14352dd81882e14876653d097b99b0f4f6b6fe798edc0320cff27aff
linux-arm64 3725d7cd7102e4d70827186389f7d5930b6878232930d0a3eb058d7e5b47e658
macos-x86_64 89d5ed42081dd9d0433a10b7545fac42b35f1f030885c278b9712b32c66f2597
macos-arm64 2632561b974c69f952258c1ab4b7432d5c7f92e555704155c3ac28a2910bd717
windows-x86_64 33c2293ff02834720dd7cd8b47348aafb2e95a19bdc993c0ecaca9c804ade92a

Test plan

  • zizmor audit passes in CI
  • No Python/pip required on runner

@jdalton
Copy link
Copy Markdown
Contributor Author

Superseded by #23, which includes this zizmor fix plus a new setup-and-install reusable workflow.

Replace `pip install zizmor==1.23.1` with a direct download of the
zizmor native binary from GitHub releases. The binary is verified
against a SHA-256 checksum before use.

This removes the Python/pip dependency entirely. zizmor is a Rust
binary that ships standalone builds for all platforms (Linux, macOS,
Windows) with no runtime dependencies.

Also switches from secrets.GITHUB_TOKEN to github.token to avoid
a zizmor secrets-outside-env warning.
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