Skip to content

Commit 5b0c5f9

Browse files
authored
Modify renovate config for better experience (#7605)
## Summary This PR includes 3 somewhat related changes, which should help maintain a better experience and keep the repo somewhat more secure: 1. Pin github actions to hashes instead of versions automatically, this is desirable because github-actions have mutable releases, and no guarantee the code and the release matches, a fact which has been repeatedly abused in recent years. 2. Split the lock file updates by ecosystem, so they don't get blocked on unrelated issues. 3. Instead of automerging patch/minor releases, only do that once a dependency is "stable" in semver terms (post 1.0) Signed-off-by: Adam Gutglick <adam@spiraldb.com>
1 parent 2167e61 commit 5b0c5f9

1 file changed

Lines changed: 33 additions & 3 deletions

File tree

renovate.json

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": [
44
"config:recommended",
5-
":automergePatch",
6-
":automergeMinor",
5+
":automergeStableNonMajor",
76
":automergePr",
87
":automergeRequireAllStatusChecks",
98
":combinePatchMinorReleases",
109
":dependencyDashboard",
1110
":separateMultipleMajorReleases",
1211
":configMigration",
1312
"group:rust-futuresMonorepo",
13+
"helpers:pinGitHubActionDigests",
1414
"schedule:earlyMondays",
1515
"docker:disable"
1616
],
@@ -60,6 +60,36 @@
6060
"matchSourceUrls": [
6161
"https://github.com/hyperium/tonic"
6262
]
63+
},
64+
{
65+
"groupName": "Rust lock file maintenance",
66+
"groupSlug": "rust-lock-file-maintenance",
67+
"matchManagers": [
68+
"cargo"
69+
],
70+
"matchUpdateTypes": [
71+
"lockFileMaintenance"
72+
]
73+
},
74+
{
75+
"groupName": "Python lock file maintenance",
76+
"groupSlug": "python-lock-file-maintenance",
77+
"matchManagers": [
78+
"pep621"
79+
],
80+
"matchUpdateTypes": [
81+
"lockFileMaintenance"
82+
]
83+
},
84+
{
85+
"groupName": "JS lock file maintenance",
86+
"groupSlug": "js-lock-file-maintenance",
87+
"matchManagers": [
88+
"npm"
89+
],
90+
"matchUpdateTypes": [
91+
"lockFileMaintenance"
92+
]
6393
}
6494
],
6595
"customManagers": [
@@ -77,4 +107,4 @@
77107
"extractVersionTemplate": "^v?(?<version>.*)$"
78108
}
79109
]
80-
}
110+
}

0 commit comments

Comments
 (0)