From 355d91707c269b531f9410e14a16fcfcc003ff52 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Sun, 15 Feb 2026 14:41:37 +1100 Subject: [PATCH] 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 --- .github/workflows/claude-code-review.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index b5e8cfd4d..fa7ab9822 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -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 }}