From 82ed761784ca1036e8a28013a26ff3316d9e81ae Mon Sep 17 00:00:00 2001 From: Robby Manihani Date: Fri, 3 Apr 2026 22:00:34 -0700 Subject: [PATCH] fix: pass github_token to Claude workflows to bypass OIDC (#186) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #182 — the claude-code-action attempts OIDC token exchange when no github_token is provided, which fails without the Anthropic GitHub App installed. Passing secrets.GITHUB_TOKEN skips the OIDC flow. --- .github/workflows/claude-issues.yml | 1 + .github/workflows/claude-review.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/claude-issues.yml b/.github/workflows/claude-issues.yml index dfbd3ff7..7d5d67c3 100644 --- a/.github/workflows/claude-issues.yml +++ b/.github/workflows/claude-issues.yml @@ -38,6 +38,7 @@ jobs: - uses: anthropics/claude-code-action@v1 with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} + github_token: ${{ secrets.GITHUB_TOKEN }} prompt: | You are an automated issue fixer for the OpenJarvis repository. Follow these steps in order: diff --git a/.github/workflows/claude-review.yml b/.github/workflows/claude-review.yml index 2da7cd5b..0df5e1ac 100644 --- a/.github/workflows/claude-review.yml +++ b/.github/workflows/claude-review.yml @@ -47,4 +47,5 @@ jobs: - uses: anthropics/claude-code-action@v1 with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} + github_token: ${{ secrets.GITHUB_TOKEN }} prompt: ${{ steps.review.outputs.instructions }}