Self-hosted Renovate #785
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Renovate | |
on: | |
schedule: | |
- cron: "18 */4 * * *" | |
workflow_dispatch: | |
jobs: | |
renovate: | |
permissions: | |
contents: read # needed to read the contents of the repository | |
id-token: write # needed to create a GitHub App token | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: retrieve secrets | |
id: get-secrets | |
uses: grafana/shared-workflows/actions/get-vault-secrets@332fb1cf3349234b5b1940f3f2797410e6ccd5d2 | |
with: | |
common_secrets: | | |
GRAFANA_RENOVATE_APP_ID=grafana-renovate-app:app-id | |
GRAFANA_RENOVATE_PRIVATE_KEY=grafana-renovate-app:private-key | |
- name: create GitHub app token | |
id: app-token | |
# Beware that the token generated here has elevated permissions wrt to | |
# the ones set in the action. In particular, it will be able to write | |
# to the repository (e.g. create branches) and create pull requests. | |
uses: actions/create-github-app-token@v1 | |
with: | |
app-id: ${{ env.GRAFANA_RENOVATE_APP_ID }} | |
private-key: ${{ env.GRAFANA_RENOVATE_PRIVATE_KEY }} | |
owner: ${{ github.repository_owner }} | |
- name: Self-hosted Renovate | |
uses: renovatebot/github-action@dd4d265eb8646cd04fc5f86ff8bc8d496d75a251 # v40.2.8 | |
with: | |
renovate-version: 39.29.0@sha256:9ac3737e9d3402494cd1a538f9689ed0ddb5dfc8e6dfc2dfc6c0a53ef452d716 | |
configurationFile: .github/renovate-app.json | |
token: "${{ steps.app-token.outputs.token }}" | |
env: | |
LOG_LEVEL: debug | |
RENOVATE_PLATFORM: github | |
RENOVATE_REPOSITORIES: ${{ github.repository }} |