Add checks/statuses read permissions to Claude workflow#700
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
WalkthroughExpands Claude's access permissions in GitHub Actions by adding reads for checks and statuses. Introduces github_token input to the Claude Run step in the workflow configuration, enabling Claude to read CI results and workflow status information. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
✨ 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 |
|
✅ Review app for PR #700 was successfully deleted |
PR Review: Add checks/statuses read permissions to Claude workflowOverall assessment: Clean, low-risk change. Looks good. Summary of changes
ObservationsMinor: Redundancy between job permissions and
Explicit SecurityAll added permissions are read-only ( |
| claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} | ||
|
|
||
| # This is an optional setting that allows Claude to read CI results on PRs | ||
| additional_permissions: | |
There was a problem hiding this comment.
The additional_permissions block now lists actions: read, checks: read, and statuses: read — all of which are already granted at the job level above. The duplication is intentional (the action uses this input to know which scopes it may call), but a brief comment here would prevent future readers from thinking the entries are accidental or redundant.
| additional_permissions: | | |
| # additional_permissions mirrors the job-level permissions so the action | |
| # knows which GitHub API scopes it is allowed to use at runtime. | |
| additional_permissions: | | |
| actions: read | |
| checks: read | |
| statuses: read |
🚀 Quick Review App CommandsWelcome! Here are the commands you can use in this PR:
|
Greptile SummaryThis PR expands the Claude Code workflow's permissions to read CI check and status data by adding
All changes are read-only permissions that enable the Claude action to access CI results without affecting production code or granting write access. Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 3f6409b |
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 change that only expands the Claude GitHub Action to read CI check/status data; no production code paths are affected.
Overview
Updates the
Claude CodeGitHub Actions workflow to letanthropics/claude-code-action@v1read CI results by addingchecks: readandstatuses: readto the job permissions andadditional_permissions.Also passes
github_token: ${{ github.token }}into the action to enable those GitHub API calls.Written by Cursor Bugbot for commit 3f6409b. Configure here.
Summary by CodeRabbit