paas-cf icon indicating copy to clipboard operation
paas-cf copied to clipboard

Give the GITHUB_TOKEN permission to create PRs

Open whi-tw opened this issue 2 years ago • 0 comments

What

Github allows you to elevate the provided GITHUB_TOKEN's permissions, so it can create a PR.

Rather than having an unprivileged bot token, elevate the token's permissions to allow this via the workflow.

(@AP-Hunt told me that there were issues with this that needed a workaround, and it's just come up again on https://github.com/alphagov/paas-docker-cloudfoundry-tools/pull/226)

How to review

Code review


🚨⚠️ Please do not merge this pull request via the GitHub UI ⚠️🚨

whi-tw avatar Jun 07 '22 14:06 whi-tw