Use GitHub App token instead of default token#252
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR replaces the default GITHUB_TOKEN with a GitHub App token so workflows can be triggered with elevated permissions.
- Removes job-level
contents: writeandpull-requests: writepermissions on the default token. - Adds a step to generate a GitHub App token with the necessary scopes.
- Updates the
tagpraction to use the newly generated token.
Comments suppressed due to low confidence (2)
.github/workflows/release.yml:23
- The
Create GitHub App Tokenstep runs after checkout, so the checkout step still uses the defaultGITHUB_TOKEN. Consider moving the token creation before checkout or re-runningactions/checkoutwithtoken: ${{ steps.app-token.outputs.token }}to ensure the correct credentials are used.
persist-credentials: true
.github/workflows/release.yml:27
- [nitpick] Pinning to a hard-coded commit SHA can make future upgrades harder. Consider using a version tag (e.g.,
@v2or@v2.0.6) to simplify maintenance and get patch updates automatically.
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
36616a2 to
3a64111
Compare
It will fire workflows which can't be with the default token.
3a64111 to
e26991b
Compare
|
Warning Rate limit exceeded@5ouma has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 14 minutes and 34 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 (2)
WalkthroughThe changes remove a GitHub Actions lint exclusion configuration and update the release workflow. The workflow now replaces the default repository token with a GitHub App token for tagging releases, disables checkout persistent credentials, and removes explicit job permissions for the tag creation step. Changes
✨ 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. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
close #
✏️ Description
It will fire workflows that can't be with the default token.