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.

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.
@mbevc1 mbevc1 requested a review from a team as a code owner June 23, 2026 15:54
@mbevc1 mbevc1 added the enhancement New feature or request label Jun 23, 2026
@mbevc1 mbevc1 changed the title feat: verify CLI checksums and normalize leading v on exact pins feat: verify CLI checksums and normalize leading v on exact pins Jun 23, 2026
@AlexKantor87 AlexKantor87 merged commit e44bea4 into main Jun 23, 2026
12 checks passed
@AlexKantor87 AlexKantor87 deleted the 20260623_verify_downloads branch June 23, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants