fix: Create release tags explicitly before draft release creation#1798
Conversation
The publish rewrite removed the git tag push that previously preceded release creation. With the active tag ruleset, the workflow token cannot create a release for a tag that does not exist yet and GitHub returns 403 Resource not accessible by integration, which broke both the native CLI and dispatcher publish paths for every new release. The privileged publish jobs now create the tag ref through the git refs API at the already-verified release commit before creating the draft release, matching the previously proven tag-first flow without adding a repository checkout. Existing tags keep the same mismatch rejection, and reruns remain idempotent because a tag pointing at the verified commit skips creation.
|
Warning Review limit reached
Next review available in: 4 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Both privileged publish jobs now create the release tag ref through the git refs API at the verified release commit before creating the draft release. This unblocks the
uloop-project-runner-v3.0.0-beta.48recovery and fixes release publishing for every future release.Root cause
The recovery dispatch reached
gh release createwith correct inputs (RELEASE_SHA=2d8d1b94…, taguloop-project-runner-v3.0.0-beta.48) and failed withHTTP 403: Resource not accessible by integration(run 29426478997). The pre-hardening workflow always rangit tag+git pushbeforegh release create, so releases were only ever created for tags that already existed — that is whyuloop-project-runner-v3.0.0-beta.47published successfully on 2026-07-11 with the "Protect release tags" ruleset already active (created 2026-07-10). The hardening rewrite dropped the tag-first step; with the active tag ruleset, the workflow token cannot create a release for a not-yet-existing tag, while creating the tag ref itself is permitted (the ruleset only restricts deletion, update, and non-fast-forward).Fix
gh api repos/…/git/refs -f ref="refs/tags/${RELEASE_TAG}" -f sha=<verified commit>—RELEASE_SHAfor the native workflow, the approved event commit for the dispatcher workflow.gh release create.Verification
scripts/test-native-cli-publish-workflow.shscripts/test-dispatcher-publish-workflow.shgo run ./cmd/check-release-triggers --base origin/v3-beta --head HEADAfter merge
Re-dispatch the recovery:
The native build artifacts are rebuilt by the new run; both publish jobs again require
cli-releaseenvironment approval.