anthropics / anthropics/claude-code-action

How to get permissions working for triggers via non-maintainers?

Abierto
#815 0 comentarios 0 reacciones 0 asignados Ver en GitHub
area:permissions installation p2 question
Lenguaje dominante
TypeScript
Estrellas
8.9k
Forks
2.1k
Merge medio
3 d 9 h
PR fusionados (30 d)
10

Descripción

For example, I'm trying to set up automated claude code reviews.
I've tried `pull_request` and `pull_request_target` triggers.

I've also tried the default GITHUB_TOKEN with setting up write permissions in the workflow file, and also now defined my own PAT token.

However the Claude Code action always fails with:

```
Run bun run ${GITHUB_ACTION_PATH}/src/entrypoints/prepare.ts
Auto-detected mode: agent for event: pull_request
Using provided GITHUB_TOKEN for authentication
Checking permissions for actor: {{AUTHOR}}
Permission level retrieved: read
Warning: Actor has insufficient permissions: read
Error: Prepare step failed with error: Actor does not have write permissions to the repository
Error: Process completed with exit code 1.
```

Example here: https://github.com/thomhurst/TUnit/actions/runs/20957471946/job/60225577738?pr=4360

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.