-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathrenovate.json5
More file actions
142 lines (142 loc) · 4.06 KB
/
renovate.json5
File metadata and controls
142 lines (142 loc) · 4.06 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
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: [
":preserveSemverRanges",
":semanticCommitsDisabled",
":separateMajorReleases",
"config:recommended",
"helpers:pinGitHubActionDigests",
],
commitMessagePrefix: "deps:",
commitMessageAction: "update",
dependencyDashboardApproval: true,
addLabels: [ "dependencies" ],
postUpdateOptions: [
"gomodTidy",
"gomodUpdateImportPaths",
],
nix: { enabled: true },
npm: { enabled: true },
lockFileMaintenance: {
enabled: true,
schedule: [ "before 4am" ],
},
packageRules: [
{
// Group lockfile maintenance updates by manager.
// https://github.com/renovatebot/renovate/discussions/28068
matchUpdateTypes: [ "lockFileMaintenance" ],
additionalBranchPrefix: "{{manager}}-",
commitMessageAction: "update",
commitMessageExtra: "{{manager}} lock file",
},
{
// Enable update of indirect Go dependencies.
// This rule should not be confused with the grouping of
// indirect Go dependencies further down.
matchManagers: [ "gomod" ],
matchDepTypes: [ "indirect" ],
enabled: true,
},
{
// Group update of indirect Go dependencies.
groupName: "Go indirect dependencies",
matchManagers: [ "gomod" ],
matchDepTypes: [ "indirect" ],
matchUpdateTypes: [
"digest",
"minor",
"patch",
],
prPriority: -30, // Lower priority, higher risk of causing breakage.
},
{
// Disable major upgrades for indirect Go dependencies.
matchManagers: [ "gomod" ],
matchDepTypes: [ "indirect" ],
matchUpdateTypes: [ "major" ],
enabled: false,
},
{
// Group update of direct Go dependencies.
groupName: "Go dependencies",
matchManagers: [ "gomod" ],
matchDepTypes: [ "require" ],
matchUpdateTypes: [
"digest",
"minor",
"patch",
],
},
{
// Disable Go toolchain directive updates in go.mod.
// These don't make any sense, we use the toolchain available in nixpkgs.
matchManagers: [ "gomod" ],
matchDepNames: [ "toolchain" ],
enabled: false,
},
{
// Group update of GitHub actions dependencies.
matchManagers: [ "github-actions" ],
groupName: "GitHub action dependencies",
matchUpdateTypes: [
"bump",
"digest",
"lockFileMaintenance",
"minor",
"patch",
"pin",
"pinDigest",
"rollback",
],
},
{
// Group update of Terraform dependencies.
groupName: "Terraform dependencies",
matchManagers: [ "terraform" ],
matchUpdateTypes: [
"bump",
"digest",
"lockFileMaintenance",
"minor",
"patch",
"pin",
"pinDigest",
"rollback",
],
},
{
// Disable updating of locally-replaced dependencies.
matchPackageNames: [
"github.com/edgelesssys/contrast",
"github.com/edgelesssys/contrast/imagepuller",
"github.com/edgelesssys/contrast/tools/imagepuller-benchmark",
],
enabled: false,
},
],
customManagers: [
{
// Update tool versions for bare metal runners.
customType: "jsonata",
fileFormat: "json",
managerFilePatterns: [ "/tools\\/bm-maintenance\\/versions\\.json$/" ],
matchStrings: [ "$.*" ],
depNameTemplate: "{{ depName }}",
currentValueTemplate: "{{ currentValue }}",
datasourceTemplate: "{{ datasource }}",
versioningTemplate: "{{ versioning }}",
registryUrlTemplate: "{{ registryUrl }}",
},
{
// Bump the NixOS system.stateVersion
customType: "regex",
managerFilePatterns: [ "/packages\\/nixos\\/system\\.nix$/" ],
matchStrings: [ 'system\\.stateVersion\\s*=\\s*"(?<currentValue>\\d\\d\\.\\d\\d)"' ],
depNameTemplate: "nixos/stateVersion",
datasourceTemplate: "github-tags",
packageNameTemplate: "NixOS/nixpkgs",
versioningTemplate: "regex:^(?<major>\\d\\d)\\.(?<minor>\\d\\d)$",
},
],
}