Set required permissions for the SDK size and DB entities checks#6398
Set required permissions for the SDK size and DB entities checks#6398
Conversation
PR checklist ✅All required conditions are satisfied:
🎉 Great job! This PR is ready for review. |
|
DB Entities have been updated. Do we need to upgrade DB Version? |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughTwo GitHub Actions workflows now explicitly declare permissions for the default token, specifying read access to repository contents and write access to pull requests and issues, rather than relying on implicit defaults. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 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. Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.Comment |
SDK Size Comparison 📏
|
890f721 to
bbae9fc
Compare
|
|
🚀 Available in v7.1.0 |



Goal
SDK size & DB entities checks need write permissions for writing comments, so we're adding the relevant permission block. Up until now, this didn't cause problems because the token we're using has those permissions, but that doesn't work for Dependabot PRs. They receive a read-only token unless we declare permissions, which is why the corresponding failures in #6394.
Implementation
Add the permissions block
Testing
After merging this PR, we should update dependabot's PR and verify that the SDK size check succeeds
Summary by CodeRabbit