anthropics / anthropics/claude-code-action

`contents: write` permission required?

Open
#755 0 comments 0 reactions 0 assignees View on GitHub
area:permissions documentation installation p3 question
Dominant language
TypeScript
Stars
8.9k
Forks
2.1k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

I wanted to limit the permissions for the Claude app, so I am following the documentation (https://github.com/anthropics/claude-code-action/blob/main/docs/setup.md#using-a-custom-github-app) to create a Custom App and define permissions myself.

I've come across various Issues where that was the [recommended solution](https://github.com/anthropics/claude-code-action/issues/474#issuecomment-3210213252). The documentation, however, [notes that]:(https://github.com/anthropics/claude-code-action/blob/main/docs/setup.md#using-a-custom-github-app:~:text=...%20other%20configuration-,Important%20notes%3A,-The%20custom%20app)
_"The custom app must have read/write permissions for Issues, Pull Requests, and Contents"_

Can I not limit the `contents` permission to just `read` access in my Custom App?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.