surshar / claude-code
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.
Built by Anthropic · github.com/anthropics
- Update action references from @beta to @v1 - Move allowed_tools to --allowedTools in claude_args - Move mcp_config to --mcp-config in claude_args - Move claude_env to step-level env block - Replace timeout_minutes with GitHub native timeout-minutes Claude-Generated-By: Claude Code (cli/claude-opus-4-5=100%) Claude-Steers: 8 Claude-Permission-Prompts: 3 Claude-Escapes: 0
| M.github/workflows/claude-dedupe-issues.yml |
| M.github/workflows/claude-issue-triage.yml |
| M.github/workflows/oncall-triage.yml |
| @@ -24,12 +24,12 @@ | ||
| 24 | 24 | |
| 25 | 25 | - name: Run Claude Code slash command |
| 26 | 26 | uses: anthropics/claude-code-base-action@v1 |
| 27 | + env: | |
| 28 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| 27 | 29 | with: |
| 28 | 30 | prompt: "/dedupe ${{ github.repository }}/issues/${{ github.event.issue.number || inputs.issue_number }}" |
| 29 | 31 | anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} |
| 30 | 32 | claude_args: "--model claude-sonnet-4-5-20250929" |
| 31 | - claude_env: | | |
| 32 | - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| 33 | 33 | |
| 34 | 34 | - name: Log duplicate comment event to Statsig |
| 35 | 35 | if: always() |
| @@ -95,13 +95,14 @@ | ||
| 95 | 95 | EOF |
| 96 | 96 | |
| 97 | 97 | - name: Run Claude Code for Issue Triage |
| 98 | + timeout-minutes: 5 | |
| 98 | 99 | uses: anthropics/claude-code-base-action@v1 |
| 100 | + env: | |
| 101 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| 99 | 102 | with: |
| 100 | 103 | prompt_file: /tmp/claude-prompts/triage-prompt.txt |
| 101 | - allowed_tools: "Bash(gh label list),mcp__github__get_issue,mcp__github__get_issue_comments,mcp__github__update_issue,mcp__github__search_issues,mcp__github__list_issues" | |
| 102 | - timeout_minutes: "5" | |
| 103 | 104 | anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} |
| 104 | - mcp_config: /tmp/mcp-config/mcp-servers.json | |
| 105 | - claude_args: "--model claude-sonnet-4-5-20250929" | |
| 106 | - claude_env: | | |
| 107 | - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| 105 | + claude_args: | | |
| 106 | + --model claude-sonnet-4-5-20250929 | |
| 107 | + --mcp-config /tmp/mcp-config/mcp-servers.json | |
| 108 | + --allowedTools "Bash(gh label list),mcp__github__get_issue,mcp__github__get_issue_comments,mcp__github__update_issue,mcp__github__search_issues,mcp__github__list_issues" |
| @@ -109,12 +109,13 @@ | ||
| 109 | 109 | EOF |
| 110 | 110 | |
| 111 | 111 | - name: Run Claude Code for Oncall Triage |
| 112 | + timeout-minutes: 10 | |
| 112 | 113 | uses: anthropics/claude-code-base-action@v1 |
| 114 | + env: | |
| 115 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| 113 | 116 | with: |
| 114 | 117 | prompt_file: /tmp/claude-prompts/oncall-triage-prompt.txt |
| 115 | - allowed_tools: "mcp__github__list_issues,mcp__github__get_issue,mcp__github__get_issue_comments,mcp__github__update_issue" | |
| 116 | - timeout_minutes: "10" | |
| 117 | 118 | anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} |
| 118 | - mcp_config: /tmp/mcp-config/mcp-servers.json | |
| 119 | - claude_env: | | |
| 120 | - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| 119 | + claude_args: | | |
| 120 | + --mcp-config /tmp/mcp-config/mcp-servers.json | |
| 121 | + --allowedTools "mcp__github__list_issues,mcp__github__get_issue,mcp__github__get_issue_comments,mcp__github__update_issue" |