From 67caede2ad490d772e833e9c605a19953f1cac91 Mon Sep 17 00:00:00 2001 From: Wanghong Yuan Date: Mon, 20 Oct 2025 21:12:12 -0700 Subject: [PATCH] "Update Claude PR Assistant workflow" --- .github/workflows/claude.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 32e3b4d..2b6c87d 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -23,9 +23,10 @@ jobs: pull-requests: read issues: read id-token: write + actions: read # Required for Claude to read CI results on PRs steps: - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v4 with: fetch-depth: 1 @@ -34,6 +35,16 @@ jobs: uses: anthropics/claude-code-action@v1 with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} - claude_args: | - --allowedTools "Bash(bun install),Bash(bun test:*),Bash(bun run format),Bash(bun typecheck)" - --model "claude-opus-4-1-20250805" + + # This is an optional setting that allows Claude to read CI results on PRs + additional_permissions: | + actions: read + + # Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it. + # prompt: 'Update the pull request description to include a summary of changes.' + + # Optional: Add claude_args to customize behavior and configuration + # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md + # or https://docs.claude.com/en/docs/claude-code/cli-reference for available options + # claude_args: '--allowed-tools Bash(gh pr:*)' +