anthropics / anthropics/claude-code-action

Default config cannot create files when triggered from an Issue

Offen
#54 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
p2
Vorherrschende Sprache
TypeScript
Sterne
8.9k
Forks
2.1k
Ø Merge
3 T. 9 Std.
Gemergte PRs (30 T.)
10

Beschreibung

After setting up the action with default config from the command in `claude-code`, and commenting "@claude, please implement this" on a simple task asking Claude to write some caude, Claude fails with an error calling a tool:

```json
{
"type": "user",
"message": {
"role": "user",
"content": [
{
"type": "tool_result",
"content": "Claude requested permissions to use mcp__github__create_or_update_file, but you haven't granted it yet.",
"is_error": true,
"tool_use_id": "toolu_01SPMP9LasDEE2VYeS9KyG5R"
}
]
},
"session_id": "734d07ce-73f8-4b83-a614-a2bece48f631"
}
```

Claude summarizes the issue in its reply on the task thusly:

"Next Steps:
The workflow file has been created locally but needs to be committed. You can commit it manually or grant me file operation permissions to complete the commit."

The [docs](https://github.com/anthropics/claude-code-action?tab=readme-ov-file#inputs) say "allowed_tools | Additional tools for Claude to use (the base GitHub tools will always be included)" which suggests that it's expected for the tool to be already allowed.

The integration itself does have ` Read and write access to code, issues, and pull requests` permission.

Is this a bug or a mis-configuration?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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