From 9bef2ca4cad4a1e54842014ecffb42f572810300 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 3 Sep 2025 12:09:26 +0000 Subject: [PATCH] use oauth for code claude + sonnet --- .github/workflows/claude.yml | 7 ++++++- .github/workflows/pr-ready-review.yml | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 41d7a9bed1..48fb4beaba 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -95,10 +95,15 @@ jobs: env: SQLX_OFFLINE: true with: - anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} + claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} timeout_minutes: "60" allowed_tools: "mcp__github__create_pull_request,Bash" allowed_bots: "windmill-internal-app[bot]" + # claude_args: | + # --max-turns 10 + # --model claude-4-0-sonnet-20250805 + model: claude-opus-4-1-20250805 + fallback_model: claude-sonnet-4-20250514 custom_instructions: | ## IMPORTANT INSTRUCTIONS - Your branch name should be a short description of the requested changes. diff --git a/.github/workflows/pr-ready-review.yml b/.github/workflows/pr-ready-review.yml index 404f260ba1..fc7ab0354b 100644 --- a/.github/workflows/pr-ready-review.yml +++ b/.github/workflows/pr-ready-review.yml @@ -25,7 +25,8 @@ jobs: - name: Automatic PR Review uses: anthropics/claude-code-action@beta with: - anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} + # anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} + claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} timeout_minutes: "60" direct_prompt: | Please review this pull request and provide comprehensive feedback.