anthropics / anthropics/claude-code-action

Allowed tools from the example in the README do not work

未关闭
#181 2 条评论 0 个 reaction 已指派 1 人 已被 @ashwin-ant 认领 在 GitHub 查看
bug duplicate p2
主要语言
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。