Skip to content

fix: verify installer checksum against asset filename#14

Merged
princepal9120 merged 3 commits into
mainfrom
fix/install-checksum-filename
May 27, 2026
Merged

fix: verify installer checksum against asset filename#14
princepal9120 merged 3 commits into
mainfrom
fix/install-checksum-filename

Conversation

@princepal9120

Copy link
Copy Markdown
Owner

Summary

  • download the release asset under its original filename before checksum verification
  • move it to devrunner only after verification passes
  • make the shasum fallback compare hashes directly instead of relying on GNU-style filename checks

Validation

  • bash -n install.sh
  • verified sha256sum -c succeeds against the real v0.6.1 release asset checksum

@vercel

vercel Bot commented May 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
devrunner-cli Ready Ready Preview, Comment May 27, 2026 5:56pm

Add a Unix installer regression test for release checksum files that reference platform asset filenames.

Constraint: PR #14 fixes the shell path directly, but branch protection requires checks to prove the installer path stays fixed.

Rejected: Relying on manual installer smoke tests only | The checksum filename behavior regressed because it was not encoded in tests.

Confidence: high

Scope-risk: narrow

Directive: Keep this test aligned with release asset naming if artifact names change.

Tested: cargo test --test install_script_test on the earlier merged main before reconstructing this PR branch.

Not-tested: Full precommit has not run yet on this reconstructed PR branch.
Prepare v0.6.2 so the merged installer checksum repair can be tagged and built by the release workflow.

Constraint: v0.6.1 already exists upstream and does not include the final merged PR #14 installer hardening plus regression test.

Rejected: Reusing v0.6.1 | Existing tags are immutable release records.

Confidence: high

Scope-risk: narrow

Directive: Tag v0.6.2 from this commit after pushing main.

Tested: bash -n install.sh; cargo test --test install_script_test; dr precommit

Not-tested: GitHub tag release workflow has not run until the tag is pushed.
@princepal9120 princepal9120 merged commit 8fb34a4 into main May 27, 2026
9 checks passed
@princepal9120 princepal9120 deleted the fix/install-checksum-filename branch May 27, 2026 18:02
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