Skip to content

Verify CLI installs against committed checksums - #73

Merged
RomainCscn merged 6 commits into
mainfrom
pin-cli-checksums
Oct 5, 2026
Merged

RomainCscn merged 6 commits into
mainfrom
pin-cli-checksums

Conversation

@RomainCscn

@RomainCscn RomainCscn commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Pins the SHA-256 checksums of each CLI release in cli-checksums.txt, so installs of a listed version skip the GitHub API entirely: direct releases/download URL, verified against the committed hash. No token, no rate limit, no jq. This removes the anonymous-rate-limit risk #72 leaves on GitHub Enterprise runners.

  • install.sh checks cli-checksums.txt first; latest, legacy, and unlisted versions keep their current paths.
  • release.sh asserts the CLI release is immutable and appends its checksums before creating the release branch. Backfilled v0.17.0 through v0.18.0.
  • CI checks every pinned hash against the release's published checksums.txt.

Immutability is now checked once at release time instead of on every install. A committed hash can't go stale on an immutable release, and a mismatch fails closed.

Towards LIN-87430

@linear-code

linear-code Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

LIN-87430

Base automatically changed from fix-ghe-token-default to main October 5, 2026 08:32
@RomainCscn
RomainCscn merged commit 8db66b6 into main Oct 5, 2026
6 checks passed
@RomainCscn
RomainCscn deleted the pin-cli-checksums branch October 5, 2026 08:42
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.

2 participants