From 4cc43caef82c7d70ecbf6214a075986f2a2c7fc2 Mon Sep 17 00:00:00 2001 From: jaysonv0341 Date: Tue, 14 Oct 2025 14:27:51 -0600 Subject: [PATCH] Remove GitHub App token generation step Since APP_ID and APP_PRIVATE_KEY are not available (Claude is a third-party app), remove the GitHub App token generation step. The workflow will use the automatically provided GITHUB_TOKEN instead, which works perfectly for Claude code reviews. This eliminates the annotation error that was appearing on PRs. --- .github/workflows/claude-review.yml | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/.github/workflows/claude-review.yml b/.github/workflows/claude-review.yml index 8a5ed1f..fffeeed 100644 --- a/.github/workflows/claude-review.yml +++ b/.github/workflows/claude-review.yml @@ -20,10 +20,6 @@ on: secrets: ANTHROPIC_API_KEY: required: true - APP_ID: - required: false - APP_PRIVATE_KEY: - required: false AWS_ROLE_TO_ASSUME: required: false @@ -41,20 +37,10 @@ jobs: steps: - uses: actions/checkout@v4 - # (Optional) Generate a GitHub App token for better commenting behavior - - name: Generate GitHub App token - id: app-token - continue-on-error: true - uses: actions/create-github-app-token@v2 - with: - app-id: ${{ secrets.APP_ID }} - private-key: ${{ secrets.APP_PRIVATE_KEY }} - - - name: Run Claude via Anthropic API uses: anthropics/claude-code-action@v1 with: - github_token: ${{ steps.app-token.outputs.token || secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }} anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} prompt: | /review