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

Fine grained tokens may need an extra "Actions" permission #110

Open
jameshiew opened this issue Nov 4, 2024 · 0 comments
Open

Fine grained tokens may need an extra "Actions" permission #110

jameshiew opened this issue Nov 4, 2024 · 0 comments

Comments

@jameshiew
Copy link

jameshiew commented Nov 4, 2024

I created a fine grained PAT (personal access token) initially with just the permissions currently listed in the README. Using saadmk11/[email protected]

For Fine-grained Personal Access Token:

You need to create a Fine-grained Personal Access Token with these Repository permissions:

Contents: Read and write (To Push Changes to the Repository)
Workflows: Read and write (To Update GitHub Action workflow files)
Pull requests: Read and write (To Create Pull Requests)
Metadata: Read-only (Required by Above Permissions)

I got this error when running the workflow

Error: An error occurred while getting workflows for <my private repo>, GitHub API Response: {'message': 'Resource not accessible by personal access token', 'documentation_url': 'https://docs.github.com/rest/actions/workflows#list-repository-workflows', 'status': '403'}

I added "Actions" read only permission to the PAT and was able to get the action to succeed. Maybe this permission is needed in general, in which case could be added to the README?

Screenshot 2024-11-04 at 13 52 40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant