Skip to content

feat: verify CLI checksums and normalize leading v on exact pins - #30

Merged
AlexKantor87 merged 1 commit into
mainfrom
20260623_verify_downloads
Jun 23, 2026
Merged

feat: verify CLI checksums and normalize leading v on exact pins#30
AlexKantor87 merged 1 commit into
mainfrom
20260623_verify_downloads

Conversation

@mbevc1

@mbevc1 mbevc1 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Two follow-ups from the PR review:

  1. Checksum verification: the downloaded asset is now checked against the release's kosli_<version>_checksums.txt (SHA-256) before extraction; a mismatch fails the action. Releases publish checksums but no signatures, so this is the available integrity mechanism. If a release publishes no checksums file (very old versions), we warn and continue rather than break the install. Adds getAssetFilename/getChecksumsUrl/verifyChecksum helpers (getDownloadUrl reuses getAssetFilename) with unit tests.

  2. Exact pins: v2.11.43 was returned verbatim, producing a broken download URL (.../download/vv2.11.43/...). The leading v is now stripped so it matches the latest/partial paths; literal tags like latest stay unchanged.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request