Repository navigation
fix(skills): verify sha256 for download installer artifacts - #24712
Closed
markmusson wants to merge 1 commit into
Closed
markmusson wants to merge 1 commit into
markmusson wants to merge 1 commit into
Conversation
markmusson
force-pushed
the
mmusson/pr2-skill-download-sha256
branch
from
February 23, 2026 19:08
59cf272 to
cb03b85
Compare
Contributor
Author
|
CI is green on the latest rebased head and this hardening change is ready to merge. Scope remains intentionally narrow: enforce SHA-256 verification in skills download installer paths, with focused test coverage and docs updates. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
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
sha256support tometadata.openclaw.installdownload specssha256field in English and Chinese skills docsWhy
Download installers already enforce extraction/path safety, but they did not validate artifact integrity. This adds manifest-driven integrity checks without breaking existing skills that omit checksums.
Behavior
sha256accepts either:sha256:<64 hex chars>(case-insensitive prefix)sha256is invalid: installation fails before any network downloadTests
src/agents/skills-install.download.test.ts:pnpm test -- src/agents/skills-install.download.test.ts src/agents/skills-install.test.ts src/agents/skills/frontmatter.test.ts src/agents/skills-status.test.tspnpm checkGreptile Summary
Adds optional SHA-256 checksum verification for download installer artifacts to prevent installation of tampered files. The implementation validates checksums before extraction, removes mismatched files, and documents the new field in both English and Chinese docs.
Key changes:
sha256:<64 hex chars>) before download to fail fastConfidence Score: 5/5
Last reviewed commit: 8f37669
(5/5) You can turn off certain types of comments like style here!