Add checks/statuses read permissions to Claude workflow#115
Conversation
|
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. 📒 Files selected for processing (1)
✨ 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 |
PR Review: Add checks/statuses read permissions to Claude workflow
SummaryThis is a clean, low-risk workflow-only change. The additions are correct and consistent with how the action is configured. What looks good
Minor observations
Overall: Approved — the change is correct and safe. |
Greptile SummaryThis PR expands the GitHub token permissions for the
Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[GitHub Event triggered] -->|comment contains @claude| B[Claude Workflow runs]
B --> C[Scoped workflow token issued\nwith read-only permissions]
C --> D[claude-code-action receives\nworkflow token + OAuth token]
D --> E{Reads CI data via\nGitHub REST API}
E --> F[Check runs - NEW]
E --> G[Commit statuses - NEW]
E --> H[Actions runs - existing]
F & G & H --> I[Claude generates response\nand posts to PR or issue]
Last reviewed commit: 845c524 |
There was a problem hiding this comment.
Pull request overview
Updates the Claude GitHub Actions workflow permissions/config so the anthropics/claude-code-action job can read CI check runs and commit statuses when operating on PRs (matching the referenced upstream workflow update).
Changes:
- Add
checks: readandstatuses: readto the job-levelpermissions. - Pass
github_token: ${{ github.token }}toanthropics/claude-code-action@v1. - Add
checks: readandstatuses: readto the action’sadditional_permissions.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Applies the workflow update from shakacode/react_on_rails#2487:
checks: readandstatuses: readto job permissionsgithub_token: ${{ github.token }}toanthropics/claude-code-actionchecks: readandstatuses: readtoadditional_permissionsAdmin merge requested to keep rollout fast across repos.
Note
Low Risk
Low risk workflow-only change that expands the GitHub token permissions available to the Claude action; main consideration is the slightly broader read access for CI status metadata.
Overview
Updates the
Claude CodeGitHub Actions workflow to letanthropics/claude-code-actionread CI status details by addingchecks: readandstatuses: readto both the jobpermissionsand the action’sadditional_permissions.Also passes
github_token: ${{ github.token }}into the action so it can use the workflow token when querying GitHub APIs.Written by Cursor Bugbot for commit 845c524. Configure here.