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
Fail release publication when GitHub release immutability is not enforced #100
The release process documents the published GitHub Release as immutable, but publish-local-release.sh only prints the isImmutable value and succeeds when it is false. This silently relies on a repository setting remaining enabled and is especially risky when --repo targets another repository.
A published release whose assets remain mutable can diverge from the validator-approved names and SHA256 digests after the script succeeds.
Current behavior
The publisher validates the local and remote asset inventory and can transition a draft to published.
It queries and displays isImmutable but does not require it to be true.
Validation of an existing published release also does not fail solely because the release is mutable.
Expected behavior
Publication should succeed only when the resulting published release is immutable, matching the documented release-integrity model. Existing published releases accepted by validation should satisfy the same invariant.
Acceptance criteria
After publication, fetch the release metadata and require isImmutable=true; use bounded polling if GitHub applies the state asynchronously.
When validating an existing published release, fail if isImmutable is false.
Emit an actionable error explaining the required repository setting or policy.
Cover the false, true, missing, and delayed-value cases in the mocked gh behavioral tests.
Verify that draft releases are not incorrectly rejected before the publication transition merely because drafts are not yet immutable.
Document the enforced immutability requirement, including behavior when --repo overrides the target repository.
Activity