anthropics / anthropics/claude-code-action

Claude fails to make commits by default depending on commit message

Offen
#938 1 Kommentar 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:permissions bug p2 provider:1p
Vorherrschende Sprache
TypeScript
Sterne
8.9k
Forks
2.1k
Ø Merge
3 T. 9 Std.
Gemergte PRs (30 T.)
10

Beschreibung

**Describe the bug**
When setting up the Claude Code GitHub action, I sporadically encounter errors with Claude's ability to commit changes it makes.

**To Reproduce**
Install Claude Code action via `/install-github-app` and then open a few issues for Claude to work on and wait for it to fail to commit the changes due to permission issues.

**Expected behavior**
I expect Claude to commit changes to files it writes.

**Screenshots**
It seems to be when the message has line breaks or other commands mixed in that it doesn't match the permitted commands.

Image

Notice how it tries different messages and on the n-th attempt with just one-line messages, it successfully performs the commit.

**Workflow yml file**
I'm just using the default workflow file that comes with `/install-github-app`

**API Provider**

[x] Anthropic First-Party API (default)
[ ] AWS Bedrock
[ ] GCP Vertex

**Additional context**
I have no `CLAUDE.md` file or anything else in the repo which would affect instructions or enforce additional permissions.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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