diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 21a9c4e3..3a4f28fc 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -10,7 +10,7 @@ "helpers:pinGitHubActionDigests", ], baseBranchPatterns: ["master"], - enabledManagers: ["github-actions", "pep621"], + enabledManagers: ["github-actions", "pep621", "custom.regex"], ignorePresets: [":prHourlyLimit2"], prHourlyLimit: 10, packageRules: [ @@ -28,10 +28,27 @@ enabled: true, separateMajorMinor: false, groupName: "GitHub Actions", - matchManagers: ["github-actions"], + matchManagers: ["github-actions", "custom.regex"], schedule: ["* * 1 * *"], matchPackageNames: ["*"], }, + // uv version used in GitHub Actions is updated manually + { + enabled: false, + matchDatasources: ["github-releases"], + matchDepNames: ["astral-sh/uv"], + matchDepTypes: ["uses-with"], + }, + ], + // Is used to upgrade Renovate version + customManagers: [ + { + fileMatch: ["^\\.github/workflows/[^/]+\\.ya?ml$"], + matchStrings: [ + "# renovate: datasource=(?.*?) depName=(?.*?)\\s+.+version: (?.*)", + "# renovate: datasource=(?.*?)\\s+export RENOVATE_IMAGE=(?[^:]+):(?[^@]+)(?:@(?sha256:[a-f0-9]+))?", + ], + }, ], vulnerabilityAlerts: { enabled: true, diff --git a/.github/workflows/renovate-config-validator.yml b/.github/workflows/renovate-config-validator.yml index b1a44c4c..df18fb69 100644 --- a/.github/workflows/renovate-config-validator.yml +++ b/.github/workflows/renovate-config-validator.yml @@ -37,7 +37,9 @@ jobs: egress-policy: block allowed-endpoints: > files.pythonhosted.org:443 + ghcr.io:443 github.com:443 + pkg-containers.githubusercontent.com:443 pypi.org:443 raw.githubusercontent.com:443 releases.astral.sh:443 @@ -50,7 +52,7 @@ jobs: - name: Validate configuration run: | # renovate: datasource=docker - export RENOVATE_IMAGE=ghcr.io/renovatebot/renovate:43.185 + export RENOVATE_IMAGE=ghcr.io/renovatebot/renovate:43.160.2@sha256:e977df2dbd4b978cc301a0b4d8e0162ec4ce08bd205422c02c4cf55f52b67336 docker run --rm --entrypoint "renovate-config-validator" \ -v "${{ github.workspace }}/.github/renovate.json5":"/renovate.json5" \ ${RENOVATE_IMAGE} "/renovate.json5" diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index 4c1805d5..741bb09c 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -87,6 +87,8 @@ jobs: - name: Self-hosted Renovate uses: renovatebot/github-action@693b9ef15eec82123529a37c782242f091365961 # v46.1.14 with: + # renovate: datasource=github-releases depName=renovatebot/renovate + renovate-version: 43.160.7 configurationFile: .github/renovate.json5 token: "${{ steps.get-github-app-token.outputs.token }}" env: