anthropics / anthropics/claude-code-action

Allowed tools from the example in the README do not work

Open
#181 2 comments 0 reactions 1 assignee Claimed by @ashwin-ant View on GitHub
bug duplicate p2
Dominant language
TypeScript
Stars
8.9k
Forks
2.1k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

**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:*)`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.