PREQ-8689: Create release tags via draft GitHub release - #318
Conversation
|
@sonarsource/code-orchestration-ci-experience-squad @antoine-vinot-sonarsource could you review this? It unblocks the scanner CLI Docker release (PREQ-8689 / tag |
antoine-vinot-sonarsource
left a comment
There was a problem hiding this comment.
@tomverin I'm good to give this a try. What about Gitar comments? Do they make sense?
|
@antoine-vinot-sonarsource yes, the Gitar comments made sense. I applied all three: validate draft |
|
Checked the current state of the branch — none of the three fixes described in these replies are actually present yet: I'm implementing these changes now: capturing and inspecting |
Code Review ✅ Approved 4 closed / 4 findings🟡 Medium risk Replaces git-protocol tag push with the documented draft-first GitHub release flow to recover from tag creation restrictions. The retry-after-HEAD-moves issue is unrecoverable per documented advice; abort message now directs operators to delete the draft and re-dispatch or dispatch from the draft target commit, with matching DEVELOPER.md recovery guidance. Draft reuse/create validation gaps and non-404 ✅ 4 closed✅ Bug: Retry after HEAD moves is unrecoverable per the given advice
Closed: Bug: Draft reuse/create never validates the release target commit
Closed: Bug: Non-404
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
|





Summary
sonar-scanner-cli-dockerfails at Create and push release tag withGH013: Cannot create ref due to creations being restricted(git tag+git pushof12.2.0.3249_8.1.0). The tag was never created.gh release create --draft --target "$GITHUB_SHA"(same pattern as gh-action_release v7). Existing drafts are reused so a later step failure can be retried; a published immutable release is rejected.gh-action_sbom@v3still attaches the SBOM to the draft;gh release edit --draft=falsestill publishes.Jira: PREQ-8689
Test plan
12.2.0.3249_8.1.0(none after the failed run).tag_name=12.2.0.3249_8.1.0.$GITHUB_SHA.