Skip to content

ci(release): hardening and doc follow-ups from the #2387 review #2389

Closed

Description

@thiras

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-binaries and docker check out ref: <tag name>, while verify uses the default github.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: use ref: ${{ github.sha }} in both checkouts. In tag, also check git rev-parse "$GITHUB_REF_NAME^{commit}" equals $GITHUB_SHA.
  • Add --locked to the release builds. cross build and cargo build in build-binaries don't pass it. verify's cargo publish --workspace --dry-run --locked mostly 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. In for t in $(git tag --list …), a failing git tag doesn't stop the step, so PREV stays empty. The run then sets has_baseline=false and skips semver-checks, exactly as if this were the first release. Fix: assign TAGS=$(git tag --list …) as its own statement, then loop over $TAGS.
  • Make docker wait for upload-assets. If the 11-archive check fails, docker still pushes the untagged image and attaches the SBOM and image-digest.txt to the draft. Also, the glibc-floor check lives in docker, and upload-assets doesn'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's concurrency comment 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.md step 4. It lists semver-checks, "then cargo 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

Activity

  1. self-assigned this
    on Oct 9, 2026
  2. added
    github_actions
    kind:chore
    on Oct 9, 2026
  3. added a commit that references this issue on Oct 9, 2026
    d70f911
  4. moved this from In progress to Done in deCDNon Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

github_actionskind:chore

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions