-
Notifications
You must be signed in to change notification settings - Fork 34
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
Permissions section in .yml file needed #20
Comments
I received the same error when using the example from the README and this appears to resolve the issue. |
I think you can also address this through the settings of your repository. See https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token Look in: |
I see. Default is set to read only. Thank you! |
Yup, that fixed it for me as well! |
I created the specified update-badges.yml
But when I ran the workflow I was getting a failed action with the error message
github.GithubException.GithubException: 403 {"message": "Resource not accessible by integration", "documentation_url": "https://docs.github.com/rest/repos/contents#create-or-update-file-contents"}
It looked like it was an issue with the GITHUB_TOKEN so I added the
contents: write
permission in the .yml and the problem went away.The text was updated successfully, but these errors were encountered: