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
This commit is contained in:
parent
4d49d70988
commit
ec5357226a
1 changed files with 5 additions and 8 deletions
11
.github/workflows/claude.yml
vendored
11
.github/workflows/claude.yml
vendored
|
|
@ -32,7 +32,7 @@ jobs:
|
||||||
|
|
||||||
- name: Run Claude Code
|
- name: Run Claude Code
|
||||||
id: claude
|
id: claude
|
||||||
uses: anthropics/claude-code-action@beta
|
uses: anthropics/claude-code-action@v1
|
||||||
with:
|
with:
|
||||||
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||||
|
|
||||||
|
|
@ -43,9 +43,6 @@ jobs:
|
||||||
# Trigger when assigned to an issue
|
# Trigger when assigned to an issue
|
||||||
assignee_trigger: "claude"
|
assignee_trigger: "claude"
|
||||||
|
|
||||||
# Allow Claude to run bash
|
claude_args: |
|
||||||
# This should be safe given the repo is already public
|
--allowedTools Bash
|
||||||
allowed_tools: "Bash"
|
--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."
|
||||||
|
|
||||||
custom_instructions: |
|
|
||||||
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.
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue