Skip to content

Commit 1ed8321

Browse files
committed
"Update Claude Code Review workflow"
1 parent 38cc39a commit 1ed8321

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/claude-code-review.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Claude Code Review
22

33
on:
4-
pull_request_target:
4+
pull_request:
55
types: [opened, synchronize, ready_for_review, reopened]
66
# Optional: Only run on specific file changes
77
# paths:
@@ -21,24 +21,24 @@ jobs:
2121
runs-on: ubuntu-latest
2222
permissions:
2323
contents: read
24-
pull-requests: write
25-
issues: write
24+
pull-requests: read
25+
issues: read
2626
id-token: write
2727

2828
steps:
2929
- name: Checkout repository
3030
uses: actions/checkout@v4
3131
with:
32-
ref: ${{ github.event.pull_request.head.sha }}
3332
fetch-depth: 1
3433

3534
- name: Run Claude Code Review
3635
id: claude-review
3736
uses: anthropics/claude-code-action@v1
3837
with:
39-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
38+
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
4039
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
4140
plugins: 'code-review@claude-code-plugins'
4241
prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
4342
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
4443
# or https://code.claude.com/docs/en/cli-reference for available options
44+

0 commit comments

Comments
 (0)