anthropics / anthropics/claude-code-action
Allowed tools from the example in the README do not work
- 主要语言
- TypeScript
- 星标
- 8.9k
- 派生
- 2.1k
- 平均合并
- 3 天 9 小时
- 30 天内合并 PR
- 10
描述
**Describe the bug**
Allowed tools from the example in the README do not work
**To Reproduce**
Add this:
```
- name: Run Claude Code
id: claude
uses: anthropics/claude-code-action@beta
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
model: claude-opus-4-20250514
allowed_tools:
- Bash(corepack yarn check)
- Bash(corepack yarn)
- Bash(corepack yarn add:*)
- Bash(gh run:*)
```
Claude Code will complaint it does not have access to these tools when asked.
**Expected behavior**
It should happily run those.
**Additional context**
When I switched to this format, it did work: `allowed_tools: Bash(corepack yarn check),Bash(corepack yarn),Bash(corepack yarn add:*),Bash(gh run:*)`
贡献指南
评估
这个 Issue 还没有评估数据。