fix(ci): add statuses: write permission to sonar.yml for PR decoration#24
Conversation
Without statuses: write, SonarCloud action cannot post commit status checks on PRs — causing the check to not appear on pull requests.
|
Warning Review limit reached
Your plan currently allows 1 review/hour. Refill in 57 minutes and 31 seconds. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more review capacity refills, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time. Please see our FAQ for further information. 📝 WalkthroughWalkthroughThis PR adds ChangesSonar Workflow Permissions
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Problem
SonarCloud analysis was running (project visible on dashboard,
coverage tracked) but not appearing as a status check on pull requests.
Root cause
sonar.ymlwas missingstatuses: writepermission. Without it,the SonarCloud action cannot post commit status checks back to GitHub —
so the check runs silently but never shows on the PR.
Fix