Skip to content

Commit 9b09592

Browse files
authored
Disable uv upgrade by renovate bot (#587)
* Disable uv upgrade by renovate bot * Address config issues * Fix traffic rules * Fix traffic rules
1 parent 358d4d4 commit 9b09592

3 files changed

Lines changed: 24 additions & 3 deletions

File tree

.github/renovate.json5

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"helpers:pinGitHubActionDigests",
1111
],
1212
baseBranchPatterns: ["master"],
13-
enabledManagers: ["github-actions", "pep621"],
13+
enabledManagers: ["github-actions", "pep621", "custom.regex"],
1414
ignorePresets: [":prHourlyLimit2"],
1515
prHourlyLimit: 10,
1616
packageRules: [
@@ -28,10 +28,27 @@
2828
enabled: true,
2929
separateMajorMinor: false,
3030
groupName: "GitHub Actions",
31-
matchManagers: ["github-actions"],
31+
matchManagers: ["github-actions", "custom.regex"],
3232
schedule: ["* * 1 * *"],
3333
matchPackageNames: ["*"],
3434
},
35+
// uv version used in GitHub Actions is updated manually
36+
{
37+
enabled: false,
38+
matchDatasources: ["github-releases"],
39+
matchDepNames: ["astral-sh/uv"],
40+
matchDepTypes: ["uses-with"],
41+
},
42+
],
43+
// Is used to upgrade Renovate version
44+
customManagers: [
45+
{
46+
fileMatch: ["^\\.github/workflows/[^/]+\\.ya?ml$"],
47+
matchStrings: [
48+
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+version: (?<currentValue>.*)",
49+
"# renovate: datasource=(?<datasource>.*?)\\s+export RENOVATE_IMAGE=(?<depName>[^:]+):(?<currentValue>[^@]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?",
50+
],
51+
},
3552
],
3653
vulnerabilityAlerts: {
3754
enabled: true,

.github/workflows/renovate-config-validator.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ jobs:
3737
egress-policy: block
3838
allowed-endpoints: >
3939
files.pythonhosted.org:443
40+
ghcr.io:443
4041
github.com:443
42+
pkg-containers.githubusercontent.com:443
4143
pypi.org:443
4244
raw.githubusercontent.com:443
4345
releases.astral.sh:443
@@ -50,7 +52,7 @@ jobs:
5052
- name: Validate configuration
5153
run: |
5254
# renovate: datasource=docker
53-
export RENOVATE_IMAGE=ghcr.io/renovatebot/renovate:43.185
55+
export RENOVATE_IMAGE=ghcr.io/renovatebot/renovate:43.160.2@sha256:e977df2dbd4b978cc301a0b4d8e0162ec4ce08bd205422c02c4cf55f52b67336
5456
docker run --rm --entrypoint "renovate-config-validator" \
5557
-v "${{ github.workspace }}/.github/renovate.json5":"/renovate.json5" \
5658
${RENOVATE_IMAGE} "/renovate.json5"

.github/workflows/renovate.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ jobs:
8787
- name: Self-hosted Renovate
8888
uses: renovatebot/github-action@693b9ef15eec82123529a37c782242f091365961 # v46.1.14
8989
with:
90+
# renovate: datasource=github-releases depName=renovatebot/renovate
91+
renovate-version: 43.160.7
9092
configurationFile: .github/renovate.json5
9193
token: "${{ steps.get-github-app-token.outputs.token }}"
9294
env:

0 commit comments

Comments
 (0)