Skip to content

Add optional checksum input for binary verification#4

Open
fernandezbaptiste wants to merge 1 commit intomainfrom
add-checksum-verification
Open

Add optional checksum input for binary verification#4
fernandezbaptiste wants to merge 1 commit intomainfrom
add-checksum-verification

Conversation

@fernandezbaptiste
Copy link
Copy Markdown

@fernandezbaptiste fernandezbaptiste commented Mar 31, 2026

Summary

  • Adds a checksum input accepting an expected SHA-256 hash of the downloaded tarball
  • When provided, verifies the hash after download and before extraction — fails the step on mismatch with a clear error
  • Fully backwards-compatible: existing callers are unaffected (checksum is optional)

Usage

- uses: tesslio/setup-tessl@v1
  with:
    version: "0.75.0"
    checksum: "abc123..."  # SHA-256 of tessl-0.75.0-linux-x64.tar.gz

Context

Addresses the binary integrity concern from tesslio/skill-review#11, tracked upstream in #3.

This is a client-side mitigation — callers who pin a version can now also pin a checksum without waiting for server-side SHA256SUMS files to be published. The remaining items in #3 (server-side checksums, version resolution via Releases API) are separate efforts.

Test plan

  • Verify action works without checksum input (existing behavior unchanged)
  • Verify action passes when checksum matches the downloaded tarball
  • Verify action fails with a clear error when checksum does not match

Adds a `checksum` input that accepts an expected SHA-256 hash of the
downloaded tarball. When provided, the action verifies the hash after
download and before extraction, failing the step on mismatch.

This is a backwards-compatible, client-side mitigation for the binary
integrity concern raised in tesslio/skill-review#11 and tracked in #3.
Callers who pin a version can now also pin a checksum without waiting
for server-side SHA256SUMS files.

Closes #3 (partial — server-side checksums and version resolution
improvements remain open)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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