Verify downloaded prek archives against manifest checksums#83
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds integrity verification for downloaded prek archives by checking their SHA-256 digest from the bundled version manifest before extraction, and updates the bundled dist/ output and documentation accordingly.
Changes:
- Verify downloaded archives against manifest SHA-256 digests before extraction.
- Bundle updated
dist/index.jswith the new verification logic. - Update README to mention manifest SHA-256 digests.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| src/install.ts | Adds SHA-256 checksum verification for downloaded archives prior to extraction. |
| dist/index.js | Regenerates the bundled action output to include the new install-time verification. |
| README.md | Updates manifest documentation to mention SHA-256 digests. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
6281c2d to
1e1d565
Compare
d10de0c to
202ba74
Compare
0fd300a to
de011c0
Compare
202ba74 to
6f5da20
Compare
j178
added a commit
that referenced
this pull request
Mar 15, 2026
## Summary - add semver range resolution for the prek-version input from the bundled manifest - document semver usage in the action inputs and README - add unit and CI coverage for semver range resolution ## Stack Depends on #83.
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
Closes #61
Stack
Depends on #80.