Skip to content

Commit 3a94f22

Browse files
Update Renovate configuration (#164)
- Move to `.github`. - Use various built-in presets. - Match labels to dependabot. - Add custom manager to update OATS in `.sh` and `.ps1` files.
1 parent 34c6ed4 commit 3a94f22

File tree

2 files changed

+65
-35
lines changed

2 files changed

+65
-35
lines changed

.github/renovate.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:best-practices",
5+
"customManagers:dockerfileVersions",
6+
"customManagers:githubActionsVersions",
7+
":disableRateLimiting",
8+
":enableVulnerabilityAlerts",
9+
":gitSignOff",
10+
":ignoreUnstable",
11+
":timezone(Europe/UTC)"
12+
],
13+
"automerge": true,
14+
"commitBodyTable": true,
15+
"customManagers": [
16+
{
17+
"customType": "regex",
18+
"description": "Update _VERSION variables in scripts",
19+
"managerFilePatterns": ["*.ps1", "*.sh"],
20+
"matchStrings": ["# renovate: datasource=(?<datasource>[a-z-]+?)(?: depName=(?<depName>.+?))?(?: packageName=(?<packageName>.+?))?(?: versioning=(?<versioning>[a-z-]+?))?\\s.+?_version=(?<currentValue>.+?)\\s"],
21+
}
22+
],
23+
"labels": [
24+
"dependencies"
25+
],
26+
"packageRules": [
27+
{
28+
"matchManagers": ["dockerfile"],
29+
"addLabels": ["docker"]
30+
},
31+
{
32+
"matchManagers": ["github-actions"],
33+
"addLabels": ["github_actions"]
34+
},
35+
{
36+
"matchManagers": ["nuget"],
37+
"addLabels": [".NET"]
38+
},
39+
{
40+
"description": ["Skip pinned NuGet package versions"],
41+
"matchManagers": ["nuget"],
42+
"matchCurrentValue": "^\\[[^,]+,\\)$",
43+
"enabled": false
44+
},
45+
{
46+
"extends": ["monorepo:dotnet"],
47+
"description": "Disable major version updates for .NET",
48+
"matchUpdateTypes": ["major"],
49+
"enabled": false
50+
},
51+
{
52+
"extends": ["monorepo:opentelemetry-dotnet"],
53+
"description": "Disable version updates for opentelemetry-dotnet",
54+
"enabled": false
55+
},
56+
{
57+
"extends": ["monorepo:opentelemetry-dotnet-contrib"],
58+
"description": "Disable version updates for opentelemetry-dotnet-contrib",
59+
"enabled": false
60+
}
61+
],
62+
"vulnerabilityAlerts": {
63+
"addLabels": ["security"]
64+
}
65+
}

renovate.json

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)