ci: Guard release tag against project version mismatch#9
Conversation
The deploy publishes the POM version while the GitHub Release title came from the tag suffix, so a mistyped tag could publish one version and announce another. Resolve the version from the POM, fail unless the tag encodes exactly that version, and title the GitHub Release from the resolved version. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0133BgD2ro4ZJh1TaXHrZSff
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe release workflow gains a ChangesRelease workflow: tag/version verification and title
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
What
Closes a gap where a mistyped or mis-placed release tag could publish one artifact version to Maven Central while the GitHub Release announced a different one.
project.versionfrom the POM (the source of truth for what is deployed) and fails the release unless the tag encodes exactly that version.Because
github-releasedepends onrelease, the single guard protects both the deploy and the Release creation. Maven Central artifacts are immutable, so failing closed before deploy is the safe behavior.🤖 Generated with Claude Code
https://claude.ai/code/session_0133BgD2ro4ZJh1TaXHrZSff
Summary by CodeRabbit