You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci(release): bind draft assets to the tagged commit at signing time #2397
sign-release.sh checks that the local tag matches origin's and that the tag signature verifies. It then signs whatever archives the draft holds. Nothing ties those archives to the commit the tag names when signing happens.
Each release run is self-consistent. actions/checkout refuses a tag that has moved off github.sha, and build-binaries and docker pin github.sha, so every job verifies and builds one commit. The gap opens after the run finishes:
vX → A. The run builds A and fills the draft.
A maintainer force-pushes a signed vX → B. This queues a new run.
Before that run replaces the assets, the maintainer runs sign-release.sh vX. The local and remote tags agree (B), and B's signature verifies.
The script signs SHA256SUMS over A's archives, published as vX = B.
This needs a maintainer to re-push their own signed tag and then sign during the race window. It is not an outside attack, but the signature then vouches for the wrong commit.
sign-release.sh refuses unless that file equals git rev-parse "refs/tags/$TAG^{commit}", then signs it alongside SHA256SUMS. This makes the commit binding part of the signed provenance.
Add cases to the sign-release test harness: a mismatched commit, and a missing file.
Optionally cross-check the image's org.opencontainers.image.revision label against the same commit.
Activity