From 3976d2905bcfa5c002c18e27688953d87487a46b Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 27 May 2025 14:58:00 +0200 Subject: [PATCH 1/2] define the github token for renovate --- .forgejo/workflows/renovate.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.forgejo/workflows/renovate.yaml b/.forgejo/workflows/renovate.yaml index 39328b3..1d198f5 100644 --- a/.forgejo/workflows/renovate.yaml +++ b/.forgejo/workflows/renovate.yaml @@ -27,3 +27,4 @@ jobs: RENOVATE_ENDPOINT: ${{ vars.RENOVATE_ENDPOINT }} RENOVATE_PLATFORM: gitea RENOVATE_REPOSITORIES: ${{ github.repository }} + RENOVATE_GITHUB_COM_TOKEN: ${{ secrets.RENOVATE_GITHUB_TOKEN }} From e0a1197a70151b064f714597cb7dd39316177c7c Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 27 May 2025 15:03:12 +0200 Subject: [PATCH 2/2] adapt renovate config to recommendations --- .forgejo/workflows/renovate.yaml | 3 ++ renovate.json | 58 +++++++++++++++++++------------- 2 files changed, 37 insertions(+), 24 deletions(-) diff --git a/.forgejo/workflows/renovate.yaml b/.forgejo/workflows/renovate.yaml index 1d198f5..2f9d7d5 100644 --- a/.forgejo/workflows/renovate.yaml +++ b/.forgejo/workflows/renovate.yaml @@ -28,3 +28,6 @@ jobs: RENOVATE_PLATFORM: gitea RENOVATE_REPOSITORIES: ${{ github.repository }} RENOVATE_GITHUB_COM_TOKEN: ${{ secrets.RENOVATE_GITHUB_TOKEN }} + RENOVATE_GIT_AUTHOR: "Renovate Bot " + RENOVATE_USERNAME: renovate + RENOVATE_ENABLE_PYTHON_TOOL_VERSIONS: true diff --git a/renovate.json b/renovate.json index 3dbec6b..93dadaa 100644 --- a/renovate.json +++ b/renovate.json @@ -3,40 +3,50 @@ "extends": [ "config:recommended" ], + "hostRules": [ + { + "matchHost": "github.com", + "token": "{{ secrets.RENOVATE_GITHUB_TOKEN }}" + } + ], "packageRules": [ - { - "matchManagers": [ - "pip_requirements" - ], - "matchFileNames": [ - "pyproject.toml", - "requirements.txt", - "requirements/*.txt" - ] - }, - { - "matchManagers": [ - "dockerfile" - ], - "matchFileNames": [ - "Dockerfile", - "**/*.dockerfile", - "**/Dockerfile.*" - ] - }, { "matchManagers": [ "github-actions" ], "matchFileNames": [ ".forgejo/workflows/*.yml", - ".forgejo/workflows/*.yaml", - ".github/workflows/*.yml", - ".github/workflows/*.yaml" + ".forgejo/workflows/*.yaml" ] + }, + { + "matchManagers": [ + "pep621" + ], + "rangeStrategy": "bump" + }, + { + "matchPackageNames": [ + "python" + ], + "matchManagers": [ + "dockerfile" + ], + "versioning": "docker" } ], + "python": { + "installToolchain": true + }, "labels": [ "dependencies" - ] + ], + "lockFileMaintenance": { + "enabled": true, + "schedule": [ + "before 5am on monday" + ] + }, + "prConcurrentLimit": 5, + "branchConcurrentLimit": 10 } \ No newline at end of file