Skip to content

First-release manual promote cannot move floating tags: Tag ruleset is Release-App-exclusive by design #1152

Closed

Description

@c-vigo

Context

Companion to the promote-release registration issue (same first-release train on vig-os/sync-issues-action). DEVKIT_TAG_PREFIX=v, DEVKIT_FLOATING_TAGS=major,minor.

Problem

The imported Tag protection ruleset bypasses only the Release App (Integration) — correct for steady state, where promote-release.yml moves vX/vX.Y with the app token. But on a first release the promote workflow is not dispatchable (see companion issue), and no human — not even a repo/org admin — can create or move the floating tags: gh api -X PATCH .../git/refs/tags/v0 → 422 Cannot update this protected ref. The consumer ends the train with the release published but vX pointing at the previous release and vX.Y missing — silently breaking the advertised uses: owner/repo@vX pin for the new version.

Suggested fix

Document the one-off bootstrap in MIGRATION.md: temporarily add a RepositoryRole: admin (actor_id 5) bypass to the tag ruleset, create/move the floating tags at the peeled release commit (same move_tag semantics as promote-release.yml), delete any orphan rc tags, then revert the ruleset. Alternatively ship a small consumer-ownable dispatch workflow that performs only the floating-tag move with the Release App token, registered from day one of the migration.

Activity

  1. added
    docs
    priority:medium
    area:ci
    effort:small
    on Jul 16, 2026
  2. c-vigo commented on Jul 16, 2026

    @c-vigo
    ContributorAuthor

    Documented via #1156 (merged to dev). docs/MIGRATION.md gains a "First-release floating tags" subsection: temporarily grant a RepositoryRole admin bypass on the Tag ruleset, move vX / vX.Y to the peeled release commit (same move_tag semantics as promote-release.yml), then revert the ruleset. Ships with the next devkit release.

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

    area:cidocseffort:smallpriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions