github-action-merge-dependabot
github-action-merge-dependabot copied to clipboard
Docs: Add instructions for required Actions settings
Prerequisites
- [X] I have written a descriptive issue title
- [X] I have searched existing issues to ensure the issue has not already been raised
Issue
During setup I received
Error: Unprocessable Entity: "GitHub Actions is not permitted to approve pull requests."
This is easily solved by checking "Allow GitHub Actions to create and approve pull requests" in Settings > Actions > General, but this isn't currently mentioned in the docs.
Thanks for reporting this. Would you like to send a PR to document this requirement?
I wonder though, the token in the workflow is required to have certain permissions, as described in the docs. It looks like these permissions are no longer enough to approve pull requests. https://github.com/fastify/github-action-merge-dependabot#usage
Setting permissions in the workflow yaml and checking this setting was enough for me to get it working on a new rep. I didn’t need to create a new token. I think the current docs infer this but just don’t mention the setting.
I can send a PR ~but won’t be today so I may need reminding 😄~ actually may have 10 mins now
Using it here if you need to reference.
https://github.com/penx/remix-google-cloud-functions/