-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Expand file tree
/
Copy pathrenovate.json5
More file actions
136 lines (125 loc) · 5.47 KB
/
renovate.json5
File metadata and controls
136 lines (125 loc) · 5.47 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
/*
%CopyrightBegin%
SPDX-License-Identifier: Apache-2.0
Copyright Ericsson AB 2025-2026. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
%CopyrightEnd%
Renovate is a github app that we use to keep various components updated.
The app is installed in the erlang/otp repo and schedules updates of
components. We use the [Forking Renovate](https://github.com/apps/forking-renovate)
App as it does not need write permissions to the otp repository.
There is a permanent issue with the status here: https://github.com/erlang/otp/issue/9908
You can view the status from renovates perspective here: https://developer.mend.io/github/erlang/otp
Renovate will open PRs to update:
* All github action versions
* All 3pps defined in vendor.info files.
*/
{
"extends": ["config:recommended"],
"description": "Renovate configuration for vendored dependencies and GitHub Actions.",
"prHourlyLimit": 0,
"prConcurrentLimit": 10,
"labels": ["team:VM"],
"assignees": ["garazdawi", "kikofernandez"],
// config:recommended ignores files in "*test*" which we do not want
// and for now we ignore any dockerfile dependencies
"ignorePaths": [".github/dockerfiles/", "lib/wx/"],
"packageRules": [
{
"matchManagers": ["github-actions"],
"groupName": "github-actions",
"matchFileNames": [
".github/workflows/*.yml",
".github/workflows/*.yaml",
".github/actions/*/*.yml",
".github/actions/*/*.yaml"
]
},
// This is used to always update upload and download in lockstep
// e.g., if upload is update to version 5, so does need to be download.
{
"matchManagers": ["github-actions"],
"groupName": "github-actions-artifacts",
"matchPackageNames": [
"actions/upload-artifact",
"actions/download-artifact"
]
}
// This is used to match out the current version from vendor.info
{
"matchFileNames": ["**/vendor.info"],
"extractVersion": "^\\s*\"versionInfo\"\\s*:\\s*\"(?<currentValue>[^\"]+)\""
},
// The patterns below are used to match out the X.Y.Z version of the github tag
{
"matchPackageNames": ["facebook/zstd", "jquery/jquery", "jquery/jquery-migrate", "Mottie/tablesorter"],
"extractVersion": "^(?<version>v?.*)"
},
{
"matchPackageNames": ["openssl/openssl"],
"extractVersion": "^openssl-(?<version>.*)"
},
{
"matchPackageNames": ["microsoft/STL"],
"extractVersion": "^vs-[0-9]+-(?<version>.*)"
},
{
"matchPackageNames": ["PCRE2Project/pcre2"],
"extractVersion": "^pcre2-(?<version>.*)"
}
],
"customManagers": [
{
// STL uses the tag "vs-YYYY-V.S.N", so we need to special case it to
// only match the V.S.N part.
"customType": "regex",
"managerFilePatterns": ["erts/emulator/ryu/vendor.info"],
"matchStrings": [
"\"downloadLocation\"\\s*:\\s*\"https://github.com/microsoft/STL\"[\\s\\S]*?\"versionInfo\"\\s*:\\s*\"vs-[0-9]+-(?<currentValue>[^\"]+)\""
],
"datasourceTemplate": "github-releases",
"depNameTemplate": "microsoft/STL"
},
{
// pcre2 uses the tag "pcre2-V.S.N", so we need to special case it to
// only match the V.S.N part.
"customType": "regex",
"managerFilePatterns": ["erts/emulator/pcre/vendor.info"],
"matchStrings": [
"\"downloadLocation\"\\s*:\\s*\"https://github.com/PCRE2Project/pcre2\"[\\s\\S]*?\"versionInfo\"\\s*:\\s*\"pcre2-(?<currentValue>[^\"]+)\""
],
"datasourceTemplate": "github-releases",
"depNameTemplate": "PCRE2Project/pcre2"
},
{
"customType": "regex",
"managerFilePatterns": ["**/vendor.info"],
"matchStrings": [
"\"downloadLocation\"\\s*:\\s*\"https://github.com/(?<depName>[^/]+/[^/\"]+)\"[\\s\\S]*?\"versionInfo\"\\s*:\\s*\"(?<currentValue>[^\"]+)\""
],
"datasourceTemplate": "github-tags",
"depNameTemplate": "{{depName}}"
},
{
"customType": "regex",
"managerFilePatterns": ["**/vendor.info"],
"matchStrings": [
"\"downloadLocation\"\\s*:\\s*\"(?<packageName>https://github.com/(?<depName>[^/]+/[^/\"]+))\"[\\s\\S]*?\"versionInfo\"\\s*:\\s*\"(?<currentDigest>[a-f0-9]+)\""
],
"currentValueTemplate": "master",
"depNameTemplate": "{{depName}}",
"packageNameTemplate": "{{packageName}}",
"datasourceTemplate": "git-refs"
}
],
"baseBranches": ["master","maint","maint-28","maint-27","maint-26"],
"schedule": ["after 2am on monday"]
}