Skip to content

Fail release publication when GitHub release immutability is not enforced #100

Closed

Description

@kiwidream

Summary

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.

References

Activity

  1. added
    bug
    on Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions