fix: Use PAT for Release Please to allow PR creation - #6
Conversation
The repository settings block GITHUB_TOKEN from creating pull requests. Use PAT_AUTO_MERGE secret which has the required permissions.
|
Warning Rate limit exceeded
⌛ 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. WalkthroughThe release workflow's authentication mechanism has been reconfigured, Apprentice. The Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
I sense a strategic shift in your authentication protocols, Apprentice. This streamlined configuration demonstrates understanding of the power—the proper credential handling shall serve your automation well. The rebel scum that plague lesser workflows shall find no purchase here. 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In @.github/workflows/release.yml:
- Around line 29-30: Add a short inline comment above the token: ${{
secrets.PAT_AUTO_MERGE }} line in the release-please-action step explaining that
the PAT must be a fine-grained token limited to this repository with minimal
permissions (contents: write, pull-requests: write) and avoid using a classic
repo-scoped PAT; reference the step by mentioning release-please-action and the
token input so maintainers know which secret to configure and why.
Summary
Fixes Release Please workflow failure caused by repository settings blocking
GITHUB_TOKENfrom creating pull requests.The Problem
The Release Please workflow was failing with:
This is because the repository has settings that prevent the default
GITHUB_TOKENfrom creating PRs.The Fix
Use the
PAT_AUTO_MERGEsecret (which was already configured) instead ofGITHUB_TOKENfor the Release Please action. This PAT has the required permissions to create PRs.Testing
Pull Request opened by Augment Code with guidance from the PR author