diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml new file mode 100644 index 0000000..bc96c10 --- /dev/null +++ b/.github/workflows/renovate.yml @@ -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 }} diff --git a/docs/developing.md b/docs/developing.md index 5b5c2e9..786c07c 100644 --- a/docs/developing.md +++ b/docs/developing.md @@ -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`.