anthropics / anthropics/claude-code-action

Default config cannot create files when triggered from an Issue

Aperta
#54 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
p2
Lingua principale
TypeScript
Stelle
8.9k
Fork
2.1k
Merge medio
3g 9h
PR unite (30g)
10

Descrizione

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?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.