mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
fix(ci): correct Claude Code Review action configuration
- Use ANTHROPIC_API_KEY environment variable instead of invalid claude_code_oauth_token parameter - Remove unsupported plugin parameters - Update permissions to allow PR comments (pull-requests: write) - Simplify prompt to standard code review request Fixes the OIDC token error by using the correct action configuration. Refs: https://github.com/anthropics/claude-code-action
This commit is contained in:
parent
8f191372c4
commit
355d91707c
1 changed files with 5 additions and 9 deletions
14
.github/workflows/claude-code-review.yml
vendored
14
.github/workflows/claude-code-review.yml
vendored
|
|
@ -21,9 +21,8 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: read
|
||||
issues: read
|
||||
id-token: write
|
||||
pull-requests: write
|
||||
issues: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
|
@ -35,10 +34,7 @@ jobs:
|
|||
id: claude-review
|
||||
uses: anthropics/claude-code-action@v1
|
||||
with:
|
||||
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
||||
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
|
||||
plugins: 'code-review@claude-code-plugins'
|
||||
prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
|
||||
# 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
|
||||
prompt: 'Review this pull request for code quality, potential bugs, and suggest improvements. Focus on the changes made in this PR.'
|
||||
env:
|
||||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue