Repository navigation
Description
Problem
The publish gate in .github/workflows/release.yml checks that sidecar files exist, concatenates them, then runs sha256sum --check. An empty sidecar is accepted if other archives have valid entries, leaving an archive entirely unverified.
Reproduction
Audited on canonical master b384e64c21257a87a1afcd8b43ba28b8c03dcfe4 (2026-09-30). The local checkout used for reproductions has the identical tracked tree. Linux amd64, Python 3.14.7.
Executed the exact Verify release assets script from the workflow in a temporary directory. Created all eight expected archive filenames and .sha256 files for RELEASE_VERSION=0.2.1-pre-beta; one sidecar was empty and the other seven contained correct hashes. The script exited 0 and printed only seven OK lines. The archive contents were small synthetic fixtures, not real release packages.
To reproduce, create those eight named files, generate their sidecars with sha256sum, truncate the x86_64-linux-gnu sidecar, then execute the workflow step with RELEASE_VERSION set. No network or publishing is needed.
Scope
Require exact coverage of the selected release archive set before accepting digest verification. Keep this focused fix usable in the current workflow and reusable by the future tools.ci.validate/release modules. Difficulty: easy.
Completion criteria
- Empty, missing, malformed, duplicate or wrong-filename checksum records fail before publication.
- Every required archive is hashed and compared with exactly one matching record; unexpected paths cannot substitute for a required archive.
- A small isolated fixture tests complete valid sets, missing coverage and mismatched bytes without building packages.
Activity