feat: add setup-deterministic-zip with pinned, checksum-verified install#92
Merged
Merged
Conversation
Add an opt-in setup-deterministic-zip installer that fetches timo-reymann/deterministic-zip at a pinned version (1.2.0) and verifies the release asset against a hard-coded per-platform SHA-256 before installing it, failing closed on mismatch. The release's own .sha256 sidecars are intentionally not trusted, since an upstream asset swap would replace them alongside the binary. Mirrors the existing pinned+checksummed jq/gomplate/semver steps. Consumers can drop inline, unverified 'curl | sudo install' patterns. Signed-off-by: Nathan Klick <nathan@swirldslabs.com>
nathanklick
force-pushed
the
fix/pin-checksum-deterministic-zip
branch
from
July 16, 2026 01:25
0badaba to
110393d
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an opt-in, supply-chain-hardened installer for deterministic-zip to this composite action by pinning a specific upstream release version and verifying a platform-specific SHA-256 before installing to /usr/local/bin.
Changes:
- Added a new
setup-deterministic-zipinput to enable deterministic-zip installation. - Implemented a pinned download + hard-coded per-platform SHA-256 verification step that fails closed on mismatch.
- Updated README to document the new input and show it in an example configuration.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| README.md | Documents the new setup-deterministic-zip input and adds it to a usage example. |
| action.yml | Adds the new input and a checksum-verified deterministic-zip install step for Linux/macOS amd64/arm64. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Use a full copy/pasteable release URL in the action.yml bump instructions instead of an ellipsis placeholder, matching the other pinned installers. Reflow the README note so the version reads inline and format the arch names as code. Signed-off-by: Nathan Klick <nathan@swirldslabs.com>
Add a dedicated test-setup-deterministic-zip job that runs the action with setup-deterministic-zip and verifies the binary, and wire the input plus a verify group into the aggregate test-all job, mirroring the existing jq/gomplate/semver coverage. Signed-off-by: Nathan Klick <nathan@swirldslabs.com>
rbarker-dev
approved these changes
Jul 16, 2026
andrewb1269
approved these changes
Jul 16, 2026
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.
Summary
Adds an opt-in
setup-deterministic-zipinstaller that fetchestimo-reymann/deterministic-zipat a pinned version (1.2.0) and verifies the release asset against a hard-coded per-platform SHA-256 before installing it, failing closed on mismatch. It follows the same pattern as the existing pinned+checksummedsetup-jq,setup-gomplate, andsetup-semversteps.Why
Consumers currently install deterministic-zip inline with an unpinned, unverified pattern:
A mutable release tag with no integrity check means an upstream asset swap silently executes attacker-controlled code in the release path. This mirrors the
semversupply-chain issue fixed in #90 / v1.2.2; this change lets consumers drop the inlinecurl | sudo installand opt in withsetup-deterministic-zip: 'true'instead.Design note
The release ships its own
<asset>.sha256sidecars, but those are not trusted here — a release-asset swap would replace the sidecar alongside the binary. The expected digests are hard-coded (assemverdoes), so any tamper fails closed. Supports Linux/macOS on amd64/arm64; bump instructions are in the step's env comment.Verification
Digests baked in were reproduced from the 1.2.0 release assets, e.g.
deterministic-zip_linux-amd64→56e9c2e28c9f535f100df1a94df122b62f4f2f66300abde2cf68d6a236ee5eaa. A one-byte tamper changes the digest andshasum -a 256 -c -exits non-zero, aborting the step before install.README updated with the new input and a usage note.
Supersedes #91 (which was opened from a fork). Same commit, GPG-signed.