anthropics / anthropics/claude-code-action

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

Đang mở
#815 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:permissions installation p2 question
Ngôn ngữ chính
TypeScript
Star
8.9k
Fork
2.1k
Merge trung bình
3 ngày 9 giờ
Pull request đã merge (30 ngày)
10

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.