Skip to content

renovate: Use GitHub app to retrieve a token #1577

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marcofranssen
Copy link
Collaborator

@marcofranssen marcofranssen commented Apr 18, 2025

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.

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.

Signed-off-by: Marco Franssen <marco.franssen@gmail.com>
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

Successfully merging this pull request may close these issues.

1 participant