GHA-216 Fix --force-with-lease failing with stale ref on bot branch#126
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
SummaryChanges What reviewers should knowThis is a single-line change in
|
SonarQube reviewer guide
|




Summary
git push --force-with-leasetogit push --forceincreate-pull-request/action.ymlContext
GHA-216 introduced a stable bot branch name (
bot/update-rule-metadata) instead of timestamped branches. This causes--force-with-leaseto fail with "stale info" in shallow CI checkouts: the remote-tracking refrefs/remotes/origin/bot/update-rule-metadatais absent from the shallow clone, so git has no expected value to compare against and rejects the push.Since the
bot/update-rule-metadatabranch is exclusively managed by this action (no human commits),--forceis safe — there is no risk of overwriting unrelated work.Fixes: https://sonarsource.atlassian.net/browse/GHA-216
🤖 Generated with Claude Code