mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-11-21 14:48:37 +00:00
chore(deps): Run Renovate with the KubeVirt GitHub App
Add a daily and manually triggered Renovate workflow based on the kubevirt-tekton-tasks setup. Use a short-lived GitHub App token and retain the existing repository dependency configuration. Document the required App access, permissions, and Actions secrets. Assisted-by: Codex (OpenAI) Signed-off-by: Karel Simon <ksimon@redhat.com>
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
---
|
||||
# Copyright 2026 Red Hat, Inc.
|
||||
# Apache License 2.0 (see LICENSE or http://www.apache.org/licenses/LICENSE-2.0)
|
||||
#
|
||||
# Required Actions secrets: RENOVATE_APP_ID and RENOVATE_APP_PRIVATE_KEY.
|
||||
# See docs/developing.md for GitHub App setup.
|
||||
|
||||
name: Renovate
|
||||
|
||||
# yamllint disable-line rule:truthy
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 6 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
renovate:
|
||||
runs-on: ubuntu-latest
|
||||
# Do not run in private forks
|
||||
if: github.repository == 'kubevirt/kubevirt.core'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Generate GitHub App token
|
||||
id: app-token
|
||||
uses: actions/create-github-app-token@v3
|
||||
with:
|
||||
app-id: ${{ secrets.RENOVATE_APP_ID }}
|
||||
private-key: ${{ secrets.RENOVATE_APP_PRIVATE_KEY }}
|
||||
|
||||
- name: Run Renovate
|
||||
uses: renovatebot/github-action@v46.3.11
|
||||
with:
|
||||
configurationFile: renovate.json
|
||||
token: ${{ steps.app-token.outputs.token }}
|
||||
env:
|
||||
LOG_LEVEL: info
|
||||
RENOVATE_REPOSITORIES: ${{ github.repository }}
|
||||
@@ -49,3 +49,10 @@ make build-venv
|
||||
The resulting virtualenv will be symlinked to `.venv`, which for example can
|
||||
be selected as virtualenv in VSCode (`Shift+Ctrl+P` and then
|
||||
`Python: Select Interpreter`).
|
||||
|
||||
## Dependency updates with Renovate
|
||||
|
||||
The `Renovate` GitHub Actions workflow runs daily at 06:00 UTC and can also
|
||||
be started manually from the Actions tab. It uses the existing `renovate.json`
|
||||
configuration to update GitHub Actions and the end-to-end test tools.
|
||||
The workflow runs only in `kubevirt/kubevirt.core`.
|
||||
|
||||
Reference in New Issue
Block a user