Skip to content

Commit 6fd3f7a

Browse files
committed
add renovate config
1 parent ac5c34e commit 6fd3f7a

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/renovate.json5

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3+
dependencyDashboard: true,
4+
suppressNotifications: ["prEditedNotification"],
5+
extends: ["config:recommended"],
6+
schedule: ["before 4am on Monday"],
7+
semanticCommits: "disabled",
8+
separateMajorMinor: false,
9+
prHourlyLimit: 10,
10+
enabledManagers: ["github-actions", "pre-commit", "pep621"],
11+
"pre-commit": {
12+
enabled: true,
13+
},
14+
lockFileMaintenance: {
15+
enabled: true,
16+
},
17+
packageRules: [
18+
// Pin GitHub Actions to immutable SHAs.
19+
{
20+
matchDepTypes: ["action"],
21+
pinDigests: true,
22+
},
23+
// Annotate GitHub Actions SHAs with a SemVer version.
24+
{
25+
extends: ["helpers:pinGitHubActionDigests"],
26+
extractVersion: "^(?<version>v?\\d+\\.\\d+\\.\\d+)$",
27+
versioning: "regex:^v?(?<major>\\d+)(\\.(?<minor>\\d+)\\.(?<patch>\\d+))?$",
28+
},
29+
{
30+
groupName: "Artifact GitHub Actions dependencies",
31+
matchManagers: ["github-actions"],
32+
description: "Weekly update of GitHub Action dependencies",
33+
},
34+
{
35+
// This package rule disables updates for GitHub runners:
36+
// we'd only pin them to a specific version
37+
// if there was a deliberate reason to do so
38+
groupName: "GitHub runners",
39+
matchManagers: ["github-actions"],
40+
matchDatasources: ["github-runners"],
41+
description: "Disable PRs updating GitHub runners (e.g. 'runs-on: macos-14')",
42+
enabled: false,
43+
},
44+
{
45+
groupName: "pre-commit dependencies",
46+
matchManagers: ["pre-commit"],
47+
description: "Weekly update of pre-commit dependencies",
48+
},
49+
],
50+
vulnerabilityAlerts: {
51+
commitMessageSuffix: "",
52+
},
53+
}

0 commit comments

Comments
 (0)