Repository navigation
Expand file tree
/
Copy pathdefault.json5
More file actions
152 lines (152 loc) · 4.5 KB
/
Copy pathdefault.json5
File metadata and controls
152 lines (152 loc) · 4.5 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
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
// gitAuthor is deliberately unset so Renovate discovers its own commit
// identity from its platform credentials. A hard-coded value that does not
// match the app's real identity makes Renovate mistake its own branches for
// manually edited ones ("PR Edited (Blocked)" on the dependency dashboard).
gitIgnoredAuthors: [
'157150467+octo-sts[bot]@users.noreply.github.com',
],
extends: [
'config:best-practices',
'customManagers:githubActionsVersions',
':gitSignOff',
':semanticCommits',
'security:gomodIndirectSecurityUpdates',
'mergeConfidence:all-badges',
],
timezone: 'Europe/London',
minimumReleaseAge: '3 days',
minimumReleaseAgeBehaviour: 'timestamp-optional',
statusCheckWhen: {
minimumReleaseAge: 'never', // To avoid blocking renovate/stability-days GH workflows.
},
labels: [
'dependencies',
'ok-to-test',
],
osvVulnerabilityAlerts: true,
// packageRules uses globs for matchPackageNames. Some packages have a separate major version i.e. /v on them which is when we would need package**/**.
packageRules: [
{
matchManagers: ['gomod'],
postUpdateOptions: [
'gomodTidy',
'gomodUpdateImportPaths',
],
},
{
groupName: 'Misc GitHub actions',
matchManagers: ['github-actions'],
},
{
groupName: 'Misc Go deps',
matchManagers: ['gomod'],
matchUpdateTypes: [
'minor',
'patch',
],
},
{
groupName: 'Cloud Go deps',
matchManagers: ['gomod'],
matchPackageNames: [
'github.com/akamai/**',
'github.com/aws/**',
'github.com/Azure/**',
'github.com/AzureAD/**',
'github.com/cloudflare/**',
'github.com/digitalocean/**',
'google.golang.org/api',
],
matchUpdateTypes: [
'minor',
'patch',
],
},
{
description: 'Group and auto-merge GCB updates',
groupName: 'Google Cloud Builders',
matchPackageNames: ['gcr.io/cloud-builders/**'],
addLabels: ['skip-review'] // Adding label to allow PRs to automerge
},
{
description: 'Group and auto-merge distroless image updates',
groupName: 'Distroless images',
matchPackageNames: ['gcr.io/distroless/**'],
addLabels: ['skip-review'] // Adding label to allow PRs to automerge
},
{
groupName: 'Kubernetes Go deps',
matchManagers: ['gomod'],
matchPackageNames: [
'k8s.io/**',
'sigs.k8s.io/**'
],
matchUpdateTypes: ['minor'],
},
{
groupName: 'Kubernetes Go patches',
matchManagers: ['gomod'],
matchPackageNames: [
'k8s.io/**',
'sigs.k8s.io/**'
],
matchUpdateTypes: ['patch'],
addLabels: ['skip-review'], // Adding label to allow PRs to automerge
},
{
groupName: 'golang.org/x deps',
matchManagers: ['gomod'],
matchPackageNames: ['golang.org/x/**'],
addLabels: ['skip-review'], // Adding label to allow PRs to automerge
},
{
groupName: 'github.com/onsi deps',
matchManagers: ['gomod'],
matchPackageNames: [
'github.com/onsi/gomega',
'github.com/onsi/ginkgo/v2',
],
addLabels: ['skip-review'], // Adding label to allow PRs to automerge
},
{
groupName: null,
matchManagers: ['gomod'],
matchUpdateTypes: [
'major',
'digest',
],
dependencyDashboardApproval: true
},
{
groupName: null,
matchPackageNames: ['renovate/renovate'],
dependencyDashboardApproval: true,
},
{
description: 'Enable auto-merge for selective dependencies',
matchPackageNames: ['docker.io/library/golang'],
addLabels: ['skip-review'], // Adding label to allow PRs to automerge
},
{
description: 'Disable minimum release age for Go upgrades',
matchDatasources: ['golang-version'],
minimumReleaseAge: null,
},
{
description: 'Disable minimum release age and enable auto-merge for selective dependencies',
matchPackageNames: ['github.com/cert-manager/**'],
minimumReleaseAge: null,
addLabels: ['skip-review'], // Adding label to allow PRs to automerge
},
{
groupName: null,
description: 'Disable (internal) cert-manager pseudo-version updates',
matchManagers: ['gomod'],
matchPackageNames: ['github.com/cert-manager/**'],
matchCurrentValue: 'v0.0.0*',
enabled: false,
},
],
}