Skip to content

Commit ec53572

Browse files
authored
Update Claude Code GitHub Action from beta to v1 (#3018)
Updates the Claude Code GitHub Action to use the stable v1 GA release instead of the beta version. ## Changes - Updates action version from `@beta` to `@v1` - Migrates `allowed_tools` to `claude_args: --allowedTools` - Migrates `custom_instructions` to `claude_args: --system-prompt` - Retains `additional_permissions` and `assignee_trigger` (both still supported in v1) ## Behavior The action continues to work the same way: - Triggers on `@claude` mentions in comments, reviews, and issues - Triggers when assigned to an issue as "claude" - Allows Claude to run Bash commands - Allows Claude to read CI results on PRs - Applies custom instructions for posting concise summaries
1 parent 4d49d70 commit ec53572

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/claude.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Run Claude Code
3434
id: claude
35-
uses: anthropics/claude-code-action@beta
35+
uses: anthropics/claude-code-action@v1
3636
with:
3737
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
3838

@@ -42,10 +42,7 @@ jobs:
4242
4343
# Trigger when assigned to an issue
4444
assignee_trigger: "claude"
45-
46-
# Allow Claude to run bash
47-
# This should be safe given the repo is already public
48-
allowed_tools: "Bash"
49-
50-
custom_instructions: |
51-
If posting a comment to GitHub, give a concise summary of the comment at the top and put all the details in a <details> block.
45+
46+
claude_args: |
47+
--allowedTools Bash
48+
--system-prompt "If posting a comment to GitHub, give a concise summary of the comment at the top and put all the details in a <details> block."

0 commit comments

Comments
 (0)