Repository navigation
Closed
Description
Chore Type
CI / Build change
Description
Git tags and GitHub Releases should be treated as immutable: once published, they must not be rewritten or deleted by automation (or by default repo policy). Today, failed release runs can still delete a created tag during rollback (e.g. release.yml), which conflicts with immutability and with stricter repo settings.
This issue covers:
- Repository configuration — enable settings/rules so tags (and releases, where applicable) cannot be casually updated or removed (e.g. tag protection / rulesets, immutable release behavior as offered by GitHub for the org/repo).
- Workflow alignment — update rollback jobs so they no longer rely on deleting tags (or mutating published releases). Compensation should be documented and implemented (e.g. branch-only rollback, failure issues with manual guidance, follow-up patch release), consistent with “publish” vs “post-publish” stages already called out in release docs.
Acceptance Criteria
- Repository (and org, if required) is configured so release tags and GitHub Releases match the project’s immutability policy (document what was enabled and where in runbooks or release docs, single source of truth).
- Rollback paths in CI (at minimum
.github/workflows/release.ymland the mirrored workspace workflow underassets/workspace/.github/workflows/release.ymlif still authoritative) do not attempt tag deletion when immutability is enforced; behavior is explicit in logs and in the rollback issue body. -
docs/RELEASE_CYCLE.md,docs/DOWNSTREAM_RELEASE.md, or other canonical release docs are updated if user-visible rollback behavior changes. - No regression in failure visibility (failed releases still produce clear issues / logs).
Implementation Notes
- Current rollback deletes the remote tag via GitHub API, e.g.
gh api ... -X DELETEongit/refs/tags/$TAGin.github/workflows/release.yml(and workspace copy). - Confirm interaction with protected tags, rulesets, and immutable releases (GitHub product names/settings may vary by plan); adjust app/token permissions if rollback strategy changes.
prepare-release.ymlrollback appears focused on branch / changelog cleanup; verify no hidden tag mutation paths.
Related Issues
- Historical rollback issues note “Release tag deleted (if created)” — behavior will change once this is done.
Priority
Medium
Changelog Category
Changed
Additional Context
Aligns supply-chain / audit expectations: released refs should remain stable; failed pipelines should clean up mutable state without assuming tags can be removed.
Activity
feat(ci): draft final releases, idempotent tags, and forward-fix roll…
fix(ci): add lightweight-tag fallback and deduplicate release view call
ci: Align release automation with draft finals and forward-fix rollba…
chore: release 0.3.1 (#109)
chore: release 0.3.1 (#112)
chore: release 0.3.1 (#342)