-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
71 lines (71 loc) · 2.18 KB
/
config.js
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
module.exports = {
extends: [
"config:recommended",
"docker:enableMajor",
":disableRateLimiting",
"helpers:pinGitHubActionDigests"
],
autodiscover: false,
repositories: [
"yellowhat/hosts"
],
dependencyDashboard: true,
baseBranches: ["main"],
labels: ["renovate"],
separateMajorMinor: true,
lockFileMaintenance: {
enabled: true,
},
packageRules: [
{
matchManagers: ["github-actions"],
enabled: true,
},
{
matchUpdateTypes: ["minor", "patch", "pin", "digest"],
automerge: true,
},
],
"github-actions": {
fileMatch: [".github/*/*.ya?ml$"],
},
customManagers: [
{
description: "Look for pip install",
customType: "regex",
fileMatch: [".*"],
matchStrings: [
"(pip|pip3)\\s+install\\s+(?<depName>[_\\-a-zA-Z0-9]+)(\\[.*\\])?==(?<currentValue>[\\w.]+)",
],
datasourceTemplate: "pypi",
},
{
description: "Look for npm install",
customType: "regex",
fileMatch: [".*"],
matchStrings: [
"npm\\s+install\\s+(?:--global|-g)\\s+(?<depName>[@\\/_\\-a-zA-Z]+)@(?<currentValue>[\\w.]+)",
],
datasourceTemplate: "npm",
},
{
description: "Look for docker://",
customType: "regex",
fileMatch: [".*"],
matchStrings: [
"uses\\s*:\\s*['\"]?docker:\\\/\\\/(?<depName>.*?):(?<currentValue>.*)(@(?<currentDigest>.*?))?['\"]?\\s*"
],
datasourceTemplate: "docker",
},
{
description: "Comment",
customType: "regex",
fileMatch: [".*"],
matchStrings: [
"#\\s*renovate:\\s*datasource=(?<datasource>.*?)\\s+depName=(?<depName>.*?)\\s+(versioning=(?<versioning>.*?))?\\s*(ARG)?.*_(ver|VER)(=|:\\s+)['\"]?(?<currentValue>[\\w+\\.\\-]*)['\"]?",
],
versioningTemplate:
"{{#if versioning}}{{{versioning}}}{{else}}ver{{/if}}",
},
],
};