-
-
Notifications
You must be signed in to change notification settings - Fork 632
Add checks/statuses read permissions to Claude workflow #2487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,8 @@ jobs: | |
| issues: read | ||
| id-token: write | ||
| actions: read # Required for Claude to read CI results on PRs | ||
| checks: read | ||
| statuses: read | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
@@ -34,17 +36,11 @@ jobs: | |
| id: claude | ||
| uses: anthropics/claude-code-action@v1 | ||
| with: | ||
| github_token: ${{ github.token }} | ||
| 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: | | ||
| actions: read | ||
|
|
||
| # Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it. | ||
| # prompt: 'Update the pull request description to include a summary of changes.' | ||
|
|
||
| # Optional: Add claude_args to customize behavior and configuration | ||
| # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md | ||
| # or https://code.claude.com/docs/en/cli-reference for available options | ||
| # claude_args: '--allowed-tools Bash(gh pr:*)' | ||
|
|
||
| checks: read | ||
| statuses: read | ||
|
Comment on lines
43
to
+46
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These three permissions ( |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: shakacode/react_on_rails
Length of output: 819
🏁 Script executed:
Repository: shakacode/react_on_rails
Length of output: 1852
🏁 Script executed:
# Check git history for this file to see recent changes and commit messages git log --oneline -20 -- .github/workflows/claude.ymlRepository: shakacode/react_on_rails
Length of output: 136
🏁 Script executed:
Repository: shakacode/react_on_rails
Length of output: 519
Prior maintainer approval required for CI workflow changes.
This repo requires "ask first" before changing files under
.github/workflows/. Please provide evidence of prior approval in the PR description or discussion thread (link or quote from maintainer).🤖 Prompt for AI Agents