fix(ci): grant write permissions to Claude GitHub Action (#74)
Update workflow permissions to allow Claude to create branches, push commits, and create PRs when tagged in issues or comments. - contents: write - create branches and push commits - pull-requests: write - create PRs and comments - issues: write - update issue comments Co-authored-by: Nicholai <nicholaivogelfilms@gmail.com>
This commit is contained in:
parent
528e5cd55c
commit
27269be7bf
15
.github/workflows/claude.yml
vendored
15
.github/workflows/claude.yml
vendored
@ -19,11 +19,11 @@ jobs:
|
||||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: read
|
||||
issues: read
|
||||
id-token: write
|
||||
actions: read # Required for Claude to read CI results on PRs
|
||||
contents: write # Create branches and push commits
|
||||
pull-requests: write # Create PRs and comments
|
||||
issues: write # Update issue comments
|
||||
id-token: write # OIDC authentication
|
||||
actions: read # Read CI results
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
@ -36,8 +36,11 @@ jobs:
|
||||
with:
|
||||
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
||||
|
||||
# This is an optional setting that allows Claude to read CI results on PRs
|
||||
# Permissions passed to Claude for repository operations
|
||||
additional_permissions: |
|
||||
contents: write
|
||||
pull-requests: write
|
||||
issues: write
|
||||
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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user