镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Verify SHA-256 of lz4 CLI downloaded in Windows release job - #134

Merged
yawkat merged 1 commit into
mainfrom
fix/issue-109
Sep 25, 2026
Merged

yawkat merged 1 commit into
mainfrom
fix/issue-109

Conversation

@yawkat

@yawkat yawkat commented Sep 25, 2026

Copy link
Copy Markdown
Owner

Fixes #109.

The Windows job in build-all-and-publish.yml downloads lz4_win64_v1_10_0.zip from the lz4/lz4 GitHub release and runs lz4.exe in the job that builds the published DLL. The release asset can be replaced: GitHub reports immutable: false, and the asset was updated after the release. This adds a SHA-256 check between download and extraction, and fails the step if the hash doesn't match.

  • Hash source: 8cb562a5…ab74 was computed from a fresh download and matches the Scoop manifest for the same URL. GitHub provides no asset digest to cross-check against.
  • Maintenance: the hash has to be updated whenever the lz4 CLI version changes; a comment in the workflow says so.
  • Before merging: this workflow doesn't run on PRs. A workflow_dispatch run with publish=false would confirm the step works on the Windows runner.

🤖 Generated with Claude Code

Fixes #109

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yawkat yawkat added this to the 1.11.4 milestone Sep 25, 2026
@yawkat
yawkat enabled auto-merge (squash) September 25, 2026 15:42
@yawkat
yawkat merged commit b4bcf19 into main Sep 25, 2026
6 checks passed
@yawkat
yawkat deleted the fix/issue-109 branch September 25, 2026 16:38
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.

Verify the lz4.exe downloaded in the Windows release job

1 participant