anthropics / anthropics/claude-code-action

Allowed tools from the example in the README do not work

Offen
#181 2 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @ashwin-ant Auf GitHub ansehen
bug duplicate p2
Vorherrschende Sprache
TypeScript
Sterne
8.9k
Forks
2.1k
Ø Merge
3 T. 9 Std.
Gemergte PRs (30 T.)
10

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.