Skip to content

Commit 14961b6

Browse files
joseph-isaacsclaude
andcommitted
fix: update Claude Code Action to v1 parameter format
Replace deprecated beta parameters with v1 format: - `allowed_tools` → `claude_args: "--allowedTools ..."` - `custom_instructions` → `claude_args: "--system-prompt ..."` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 6d747a6 commit 14961b6

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/claude.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,15 @@ jobs:
4545
additional_permissions: |
4646
actions: read
4747
48-
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
49-
# model: "claude-opus-4-20250514"
50-
5148
# Optional: Customize the trigger phrase (default: @claude)
5249
# trigger_phrase: "/claude"
5350

5451
# Optional: Trigger when specific user is assigned to an issue
5552
# assignee_trigger: "claude-bot"
5653

57-
allowed_tools: "Bash(cargo nextest:*),Bash(cargo check:*),Bash(cargo clippy:*),Bash(cargo fmt:*),Bash(uv run:*)"
58-
59-
# Optional: Add custom instructions for Claude to customize its behavior for your project
60-
custom_instructions: "You have also been granted tools:
61-
- for editing files and running cargo commands (cargo nextest, cargo check, cargo clippy, cargo fmt).
62-
- uv for running pytest (e.g. via uv run --all-packages pytest)"
54+
claude_args: |
55+
--allowedTools "Bash(cargo nextest:*),Bash(cargo check:*),Bash(cargo clippy:*),Bash(cargo fmt:*),Bash(uv run:*)"
56+
--system-prompt "You have been granted tools for editing files and running cargo commands (cargo nextest, cargo check, cargo clippy, cargo fmt) and uv for running pytest (e.g. via uv run --all-packages pytest)"
6357
6458
# Optional: Custom environment variables for Claude
6559
# claude_env: |

0 commit comments

Comments
 (0)