Repository navigation
Expand file tree
/
Copy pathrenovate.json
More file actions
239 lines (239 loc) · 8.39 KB
/
Copy pathrenovate.json
File metadata and controls
239 lines (239 loc) · 8.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>StackVista/renovate-config#v1.1.0",
"github>StackVista/renovate-config:go#v1.1.0"
],
"osvVulnerabilityAlerts": true,
"minimumReleaseAge": "7 days",
"prConcurrentLimit": 0,
"rebaseWhen": "conflicted",
"packageRules": [
{
"description": "Keep CI tools separate from action updates",
"matchManagers": ["github-actions", "custom.regex"],
"groupName": null,
"groupSlug": null
},
{
"description": "Keep Go compiler updates within the approved release line",
"matchManagers": ["gomod"],
"matchDepTypes": ["golang", "toolchain"],
"rangeStrategy": "bump",
"allowedVersions": "/^1\\.26\\./",
"groupName": "Go toolchain",
"groupSlug": "go-toolchain",
"minimumReleaseAge": null
},
{
"description": "Automerge Go compiler patches after required CI and App approval",
"matchManagers": ["gomod"],
"matchDepTypes": ["golang", "toolchain"],
"matchUpdateTypes": ["patch"],
"groupName": "Go build environment",
"groupSlug": "go-build-environment",
"automerge": true,
"automergeType": "pr",
"platformAutomerge": true,
"rebaseWhen": "behind-base-branch"
},
{
"description": "Look up Go libraries compatible with the approved compiler release line",
"matchManagers": ["gomod"],
"matchDepTypes": ["require", "indirect", "replace"],
"enabled": true,
"separateMinorPatch": true,
"constraintsFiltering": "strict",
"constraints": {
"%goMod": "<1.27.0"
},
"constraintsVersioning": {
"%goMod": "npm"
}
},
{
"description": "Review major migrations after compatible updates",
"matchUpdateTypes": ["major"],
"labels": ["dependencies/major"],
"addLabels": ["dependencies/major"],
"groupName": null,
"groupSlug": null,
"automerge": false,
"rebaseWhen": "conflicted",
"prPriority": -1
},
{
"description": "Automerge Go library patches and minors after required validation",
"matchManagers": ["gomod"],
"matchDepTypes": ["require", "indirect", "replace"],
"matchUpdateTypes": ["patch", "minor"],
"groupName": "Go libraries",
"groupSlug": "go-libraries",
"automerge": true,
"automergeType": "pr",
"platformAutomerge": true,
"rebaseWhen": "behind-base-branch"
},
{
"description": "Review unversioned Go module revisions separately from compatible releases",
"matchManagers": ["gomod"],
"matchDepTypes": ["require", "indirect", "replace"],
"matchUpdateTypes": ["digest"],
"groupName": "Go library revisions",
"groupSlug": "go-library-revisions",
"automerge": false,
"rebaseWhen": "conflicted"
},
{
"description": "Group Kubernetes modules with their coupled dependencies",
"matchManagers": ["gomod"],
"matchDepTypes": ["require", "indirect", "replace"],
"matchPackageNames": ["k8s.io/**", "sigs.k8s.io/**"],
"matchUpdateTypes": ["patch", "minor", "major"],
"groupName": "Kubernetes Go modules",
"groupSlug": "kubernetes-go-modules"
},
{
"description": "Review Kubernetes module minors for API compatibility",
"matchManagers": ["gomod"],
"matchDepTypes": ["require", "indirect", "replace"],
"matchPackageNames": ["k8s.io/**", "sigs.k8s.io/**"],
"matchUpdateTypes": ["minor"],
"automerge": false,
"rebaseWhen": "conflicted"
},
{
"description": "Group AWS SDK and Smithy modules",
"matchManagers": ["gomod"],
"matchDepTypes": ["require", "indirect", "replace"],
"matchPackageNames": ["github.com/aws/**"],
"matchUpdateTypes": ["patch", "minor", "major"],
"groupName": "AWS Go modules",
"groupSlug": "aws-go-modules"
},
{
"description": "Group Azure module major migrations",
"matchManagers": ["gomod"],
"matchDepTypes": ["require", "indirect", "replace"],
"matchPackageNames": ["github.com/Azure/**"],
"matchUpdateTypes": ["major"],
"groupName": "Azure Go modules",
"groupSlug": "azure-go-modules"
},
{
"description": "Group OpenTelemetry module major migrations",
"matchManagers": ["gomod"],
"matchDepTypes": ["require", "indirect", "replace"],
"matchPackageNames": ["go.opentelemetry.io/**"],
"matchUpdateTypes": ["major"],
"groupName": "OpenTelemetry Go modules",
"groupSlug": "opentelemetry-go-modules"
},
{
"description": "Group golang.org/x module major migrations",
"matchManagers": ["gomod"],
"matchDepTypes": ["require", "indirect", "replace"],
"matchPackageNames": ["golang.org/x/**"],
"matchUpdateTypes": ["major"],
"groupName": "golang.org/x Go modules",
"groupSlug": "golang-x-go-modules"
},
{
"description": "Group manual Kubernetes module revisions",
"matchManagers": ["gomod"],
"matchDepTypes": ["require", "indirect", "replace"],
"matchPackageNames": ["k8s.io/**", "sigs.k8s.io/**"],
"matchUpdateTypes": ["digest"],
"groupName": "Kubernetes Go module revisions",
"groupSlug": "kubernetes-go-module-revisions"
},
{
"description": "Group manual AWS module revisions",
"matchManagers": ["gomod"],
"matchDepTypes": ["require", "indirect", "replace"],
"matchPackageNames": ["github.com/aws/**"],
"matchUpdateTypes": ["digest"],
"groupName": "AWS Go module revisions",
"groupSlug": "aws-go-module-revisions"
},
{
"description": "Automerge compatible GitHub Actions separately from CI tools",
"matchManagers": ["github-actions"],
"matchDepTypes": ["action"],
"matchUpdateTypes": ["patch", "minor", "digest", "pin", "pinDigest"],
"groupName": "GitHub Actions",
"groupSlug": "github-actions",
"automerge": true,
"automergeType": "pr",
"platformAutomerge": true,
"rebaseWhen": "behind-base-branch"
},
{
"description": "Review CI tool updates separately from action references",
"matchManagers": ["github-actions", "custom.regex"],
"matchPackageNames": [
"golangci/golangci-lint",
"goreleaser/goreleaser",
"github.com/google/go-licenses/v2",
"golang.org/x/vuln"
],
"matchUpdateTypes": ["patch", "minor", "digest", "pin", "pinDigest"],
"groupName": "CI tools",
"groupSlug": "ci-tools",
"automerge": false,
"rebaseWhen": "conflicted"
},
{
"description": "Automerge GoReleaser patches with Go compiler patches",
"matchManagers": ["github-actions", "custom.regex"],
"matchPackageNames": ["goreleaser/goreleaser"],
"matchUpdateTypes": ["patch"],
"groupName": "Go build environment",
"groupSlug": "go-build-environment",
"automerge": true,
"automergeType": "pr",
"platformAutomerge": true,
"minimumReleaseAge": null,
"rebaseWhen": "behind-base-branch"
},
{
"description": "Prioritize patch updates before minors and major migrations",
"matchUpdateTypes": ["patch"],
"prPriority": 10
},
{
"description": "Only update indirect Go dependencies for known vulnerabilities",
"matchManagers": ["gomod"],
"matchDepTypes": ["indirect"],
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest", "pinDigest", "lockFileMaintenance", "rollback", "replacement"],
"matchJsonata": ["$not(isVulnerabilityAlert = true or $exists(vulnerabilityFixVersion))"],
"enabled": false
},
{
"description": "Let Kubernetes consumer upgrades select a compatible kube-openapi revision",
"matchManagers": ["gomod"],
"matchPackageNames": ["k8s.io/kube-openapi"],
"enabled": false
},
{
"description": "Apply known vulnerability fixes without a release delay",
"matchJsonata": ["isVulnerabilityAlert = true or $exists(vulnerabilityFixVersion)"],
"minimumReleaseAge": null,
"prPriority": 20
},
{
"matchManagers": [
"renovate-config",
"github-actions"
],
"matchPackageNames": [
"StackVista/renovate-config"
],
"groupName": "Renovate configuration",
"groupSlug": "renovate-config",
"separateMajorMinor": false,
"separateMinorPatch": false,
"automerge": false
}
]
}