anthropics / anthropics/claude-code-action

Default config cannot create files when triggered from an Issue

オープン
#54 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
p2
主要言語
TypeScript
スター
8.9k
フォーク
2.1k
平均マージ
3日 9時間
マージ済み PR(30日)
10

説明

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?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。