/
renovate.json5
133 lines (131 loc) · 4.07 KB
/
renovate.json5
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
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: [
"config:best-practices",
":semanticCommitType(build)",
":semanticCommitTypeAll(build)",
"group:allNonMajor",
],
username: "aki-bot[bot]",
gitAuthor: "aki-bot <103840025+aki-bot[bot]@users.noreply.github.com>",
platform: "github",
repositories: ["akikanellis/branch-name-validator-test"],
branchPrefix: "update-dependencies-",
onboarding: false,
requireConfig: "required",
configMigration: false,
automerge: false,
prHourlyLimit: 50,
customManagers: [
{
description: "Update Renovate in GitHub Action workflows",
customType: "regex",
fileMatch: ["^\\.github\\/(actions|workflows)\\/.+\\.ya?ml$"],
matchStrings: [
"renovate-version\\s*:\\s*(\"|')?(?<currentValue>.+)(\"|')?(\\s+|\\s+.*)",
],
datasourceTemplate: "docker",
depNameTemplate: "ghcr.io/renovatebot/renovate",
},
{
description: "Update semantic-release in GitHub Action workflows",
customType: "regex",
fileMatch: ["^\\.github\\/(actions|workflows)\\/.+\\.ya?ml$"],
matchStrings: [
"semantic_version\\s*:\\s*(\"|')?(?<currentValue>.+)(\"|')?(\\s+|\\s+.*)",
],
datasourceTemplate: "npm",
depNameTemplate: "semantic-release",
},
{
description: "Update Node in GitHub Action metadata file",
customType: "regex",
fileMatch: ["^action\\.ya?ml$"],
matchStrings: [
"using\\s*:\\s*(\"|')?node(?<currentValue>\\d+)(\"|')?(\\s+|\\s+.*)",
],
datasourceTemplate: "node-version",
depNameTemplate: "node",
},
{
description: "Any other file with dependencies",
customType: "regex",
fileMatch: [
"(^|/).+\\.gradle(\\.kts)?$",
"(^workflow-templates|\\.github/workflows)/[^/]+\\.ya?ml$",
"(^|/)action\\.ya?ml$",
"^ansible/.*vars/[^/]+\\.ya?ml$",
],
matchStrings: [
'\
.*renovate:\
\\sdatasource=(?<datasource>.*?)\
\\sdepName=(?<depName>.*?)\
(\\sversioning=(?<versioning>.*?))?\
\n.*(version|Version|VERSION)\\s*(:=|=|:)\\s*"?(?<currentValue>.*?)\
(@(?<currentDigest>sha256:[a-f0-9]+))?"?\
(\\s+|\\s+.*)',
],
versioningTemplate: "\
{{#if versioning}}\
{{{versioning}}}\
{{else}}\
semver-coerced\
{{/if}}",
},
],
packageRules: [
{
description: "Group Docker digest updates",
groupName: "all Docker digest dependencies",
groupSlug: "all-docker-digest",
matchDatasources: ["docker"],
matchUpdateTypes: ["digest"],
},
{
description: "Block automerge for major updates",
matchUpdateTypes: ["major"],
automerge: false,
},
{
description: "Disable Renovate digest pinning in GitHub Action workflows",
matchManagers: ["regex"],
matchDatasources: ["docker"],
matchPackageNames: ["ghcr.io/renovatebot/renovate"],
matchFileNames: [".github/actions/**/*.y*ml", ".github/workflows/*.y*ml"],
matchUpdateTypes: ["pinDigest"],
enabled: false,
},
{
description: "Disable published action updates. This is handled via semantic-release.",
matchSourceUrls: [
"https://github.com/akikanellis/branch-name-validator-test",
],
enabled: false,
},
{
description: "Group MegaLinter updates",
groupName: "megalinter monorepo",
matchSourceUrls: ["https://github.com/oxsecurity/megalinter"],
},
{
description: "\
Limit semantic-release versions to 21.x.x. Version 22.x.x is currently not \
compatible with gradle-semantic-release-plugin.",
matchDatasources: ["npm"],
matchPackageNames: ["semantic-release"],
allowedVersions: "<= 21",
},
{
description: "\
Limit conventional-changelog-conventionalcommits versions to 6.x.x. \
Version 7.x.x is currently only compatible with semantic-release >= 22.",
matchDatasources: ["npm"],
matchPackageNames: ["conventional-changelog-conventionalcommits"],
allowedVersions: "<= 6",
},
],
"docker-compose": {
fileMatch: ["(^|/)(?:docker-)?compose[^/]*\\.ya?ml\\.j2$"],
},
}