renovate: Use GitHub app to retrieve a token #1577
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As Renovate will run with a different token, there is no need for
specific workflow permissions anymore.
Instead the GitHub app should have sufficient permissions to create a
PullRequest on the repo.
See https://github.com/actions/create-github-app-token/blob/main/README.md
on instructions how to add the GitHub App.
Please note we need to configure following on the repo settings:
variable RENOVATE_APP_ID
secret RENOVATE_PRIVATE_KEY
I named it specific like this so we can dedicate this app specifically
to Renovate and therefore also keep permissions limited to the Renovate
usecase.
We can test by rerunning the renovate workflow on this PR after we put the GitHub App and variables and secrets in place on this repo.