Repository navigation
Closed
Labels
github_actionsDependabot: a GitHub Actions updatekind:choreCleanup, dependencies, tooling or release work; no user-visible change
Description
Pre-existing gaps in .github/workflows/release.yml that the reviews of #2387 turned up. #2387 didn't introduce any of them, and none can make a release look green while shipping the wrong binaries. Line references are to release.yml after #2387.
Hardening
- Pin every checkout to
github.sha.build-binariesanddockercheck outref: <tag name>, whileverifyuses the defaultgithub.sha. Suppose a tag is deleted and re-pushed while a run is in progress: that run verifies and signature-checks commit A, but builds the archives and the image from commit B, and still passes. Fix: useref: ${{ github.sha }}in both checkouts. Intag, also checkgit rev-parse "$GITHUB_REF_NAME^{commit}"equals$GITHUB_SHA. - Add
--lockedto the release builds.cross buildandcargo buildinbuild-binariesdon't pass it.verify'scargo publish --workspace --dry-run --lockedmostly covers this, but the job that produces the shipped bytes should check the lockfile itself. - Stop the semver baseline from skipping silently. Determine semver baseline runs under the default
bash -e. Infor t in $(git tag --list …), a failinggit tagdoesn't stop the step, soPREVstays empty. The run then setshas_baseline=falseand skips semver-checks, exactly as if this were the first release. Fix: assignTAGS=$(git tag --list …)as its own statement, then loop over$TAGS. - Make
dockerwait forupload-assets. If the 11-archive check fails,dockerstill pushes the untagged image and attaches the SBOM andimage-digest.txtto the draft. Also, the glibc-floor check lives indocker, andupload-assetsdoesn't wait for it, so archives that break the floor still reach the draft. The run is red either way, but the draft can end up half-filled. Consider moving the glibc check into the Linux build legs.
Docs and comments
- Resolve the idempotency contradiction.
release.yml'sconcurrencycomment says the docker push and release-asset upload "are not idempotent".RELEASING.md§ Recovery says "both asset uploads are idempotent" (they use--clobber). One of them is wrong. - Fix the order in
RELEASING.mdstep 4. It lists semver-checks, "thencargo publish --workspace --dry-run". The workflow runs the dry run first. - Remove changelog voice (CLAUDE.md: present tense only):
- "now that cutting is local" in the semver baseline step.
- "produced a valid-looking manifest" in the SHA256SUMS comment. Say "would produce".
- "the multi-minute cargo build it replaces" in the QEMU comment.
- "cosign will later replace this" in the image-digest comment.
- Fix the "Re-run failed jobs" note on Create draft GitHub Release. That rerun mode never re-runs
verify, so the draft step's idempotency matters only for "Re-run all jobs".
Unrelated, but found during the same review: actionlint reports an unknown permission scope code-quality at ci.yml:344 and ci.yml:946.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
github_actionsDependabot: a GitHub Actions updatekind:choreCleanup, dependencies, tooling or release work; no user-visible change
Type
Fields
Priority
None yet
Projects
- StatusShow more project fieldsDone
Activity
ci(release): pin builds to the verified commit and tighten ordering (#…