chore(ci): allow release workflow write permissions to create the release#196
Conversation
…n permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
|
Warning Rate limit exceeded@aaguiarz has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 19 minutes and 9 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, 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 the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project status has failed because the head coverage (33.73%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #196 +/- ##
=========================================
Coverage 33.73% 33.73%
Complexity 1005 1005
=========================================
Files 182 182
Lines 6900 6900
Branches 778 778
=========================================
Hits 2328 2328
Misses 4467 4467
Partials 105 105 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Potential fix for https://github.com/openfga/java-sdk/security/code-scanning/4
To fix the problem, add a
permissionsblock to thecreate-releasejob in.github/workflows/main.yaml. This block should grant only the minimum permissions required for the job to function. Since the job is creating a release using theGITHUB_TOKEN, it needscontents: writepermission (as creating releases requires write access to repository contents). The block should be added at the same indentation level asstepsand other job-level keys, directly under theruns-online (or afterneeds/ifif present). No other changes are needed.Suggested fixes powered by Copilot Autofix. Review carefully before merging.