Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments on "Resource not accessible by personal access token" error (fixed by adding Actions: Read-only permission) #1048

Open
broofa opened this issue Oct 26, 2024 · 0 comments
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@broofa
Copy link

broofa commented Oct 26, 2024

Not sure if this is a bug report or documentation request or just me leaving a breadcrumb for other users ...

Maybe I missed this in the docs somewhere, but it would be helpful if the README spelled out which permissions a user should select when configuring a Personal Access Token for Release Please.

While it was easy enough to infer that Contents and Pull requests permissions were needed (based on the permissions field in the sample release-please.yml file), with only those permissions selected this GH action was spitting "Resource not accessible by personal access token" errors.

I ended up having to enable the Actions permission to fix the issue, which I don't see mentioned in the docs. Ultimately, I ended up granting the following permissions on the PAT:

Type Value
Actions Read-only
Contents Read and write
Pull requests Read and write
@broofa broofa added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants