Accept multiline input for allowed_tools and disallowed_tools

This commit is contained in:
Hidetake Iwata
2025-06-13 09:03:58 +09:00
parent 41dd0aa695
commit d9e73dc5d4
3 changed files with 76 additions and 10 deletions

View File

@@ -347,8 +347,15 @@ Claude does **not** have access to execute arbitrary Bash commands by default. I
```yaml
- uses: anthropics/claude-code-action@beta
with:
allowed_tools: "Bash(npm install),Bash(npm run test),Edit,Replace,NotebookEditCell"
disallowed_tools: "TaskOutput,KillTask"
allowed_tools: |
Bash(npm install)
Bash(npm run test)
Edit
Replace
NotebookEditCell
disallowed_tools: |
TaskOutput
KillTask
# ... other inputs
```