···2323 pull-requests: read
2424 issues: read
2525 id-token: write
2626- actions: read # Required for Claude to read CI results on PRs
2626+ actions: read
2727 steps:
2828 - name: Checkout repository
2929- uses: actions/checkout@v4
2929+ uses: actions/checkout@v6
3030 with:
3131 fetch-depth: 1
32323333 - name: Run Claude Code
3434 id: claude
3535- uses: anthropics/claude-code-action@beta
3535+ uses: anthropics/claude-code-action@v1
3636 with:
3737 claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
3838-3939- # This is an optional setting that allows Claude to read CI results on PRs
4040- additional_permissions: |
4141- actions: read
4242-4343- # Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
4444- # model: "claude-opus-4-20250514"
4545-4646- # Optional: Customize the trigger phrase (default: @claude)
4747- # trigger_phrase: "/claude"
4848-4949- # Optional: Trigger when specific user is assigned to an issue
5050- # assignee_trigger: "claude-bot"
5151-5252- # Optional: Allow Claude to run specific commands
5353- # allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)"
5454-5555- # Optional: Add custom instructions for Claude to customize its behavior for your project
5656- # custom_instructions: |
5757- # Follow our coding standards
5858- # Ensure all new code has tests
5959- # Use TypeScript for new files
6060-6161- # Optional: Custom environment variables for Claude
6262- # claude_env: |
6363- # NODE_ENV: test
6464-