|
1 | 1 | {
|
2 |
| - "$schema": "https://docs.renovatebot.com/renovate-schema.json", |
3 |
| - "extends": [ |
4 |
| - "config:recommended", |
5 |
| - ":gitSignOff", |
6 |
| - "helpers:pinGitHubActionDigests" |
| 2 | + $schema: 'https://docs.renovatebot.com/renovate-schema.json', |
| 3 | + extends: [ |
| 4 | + 'config:recommended', |
| 5 | + ':gitSignOff', |
| 6 | + 'helpers:pinGitHubActionDigests', |
7 | 7 | ],
|
8 | 8 | // This ensures that the gitAuthor and gitSignOff fields match
|
9 |
| - "gitAuthor": "renovate[bot] <bot@renovateapp.com>", |
10 |
| - "includePaths": [ |
11 |
| - ".github/workflows/**", |
12 |
| - ".github/**", |
13 |
| - ".github/build.Dockerfile", |
14 |
| - "go.mod", |
15 |
| - "go.sum", |
16 |
| - "Dockerfile", |
| 9 | + gitAuthor: 'renovate[bot] <bot@renovateapp.com>', |
| 10 | + includePaths: [ |
| 11 | + '.github/workflows/**', |
| 12 | + '.github/**', |
| 13 | + '.github/build.Dockerfile', |
| 14 | + 'go.mod', |
| 15 | + 'go.sum', |
| 16 | + 'Dockerfile', |
17 | 17 | ],
|
18 |
| - "postUpdateOptions": [ |
19 |
| - "gomodTidy" |
| 18 | + postUpdateOptions: [ |
| 19 | + 'gomodTidy', |
20 | 20 | ],
|
21 |
| - "pinDigests": true, |
22 |
| - "ignorePresets": [ |
23 |
| - ":prHourlyLimit2", |
| 21 | + pinDigests: true, |
| 22 | + ignorePresets: [ |
| 23 | + ':prHourlyLimit2', |
24 | 24 | ],
|
25 |
| - "ignoreDeps": [ |
26 |
| - "github.com/mozillazg/gopacket", |
27 |
| - "github.com/mozillazg/pktdump", |
28 |
| - "github.com/cilium/ebpf", |
29 |
| - "k8s.io/cri-api", |
30 |
| - "k8s.io/cri-client", |
31 |
| - "github.com/containerd/errdefs", |
32 |
| - "github.com/mandiant/GoReSym", |
| 25 | + ignoreDeps: [ |
| 26 | + 'github.com/mozillazg/ebpf', |
| 27 | + 'github.com/mozillazg/gopacket', |
| 28 | + 'github.com/mozillazg/pktdump', |
| 29 | + 'github.com/mozillazg/cri-api', |
| 30 | + 'github.com/mozillazg/cri-client', |
| 31 | + 'github.com/containerd/errdefs', |
| 32 | + 'github.com/mandiant/GoReSym', |
33 | 33 | ],
|
34 |
| - "separateMajorMinor": true, |
35 |
| - "separateMultipleMajor": true, |
36 |
| - "separateMinorPatch": true, |
37 |
| - "pruneStaleBranches": true, |
38 |
| - "baseBranches": [ |
39 |
| - "master" |
| 34 | + separateMajorMinor: true, |
| 35 | + separateMultipleMajor: true, |
| 36 | + separateMinorPatch: true, |
| 37 | + pruneStaleBranches: true, |
| 38 | + baseBranches: [ |
| 39 | + 'master', |
40 | 40 | ],
|
41 |
| - "vulnerabilityAlerts": { |
42 |
| - "enabled": true |
| 41 | + vulnerabilityAlerts: { |
| 42 | + enabled: true, |
43 | 43 | },
|
44 |
| - "labels": [ |
45 |
| - "dependencies", |
46 |
| - "renovate/stop-updating", |
| 44 | + labels: [ |
| 45 | + 'dependencies', |
| 46 | + 'renovate/stop-updating', |
47 | 47 | ],
|
48 |
| - "stopUpdatingLabel": "renovate/stop-updating", |
49 |
| - "packageRules": [ |
| 48 | + stopUpdatingLabel: 'renovate/stop-updating', |
| 49 | + packageRules: [ |
50 | 50 | {
|
51 |
| - "enabled": false, |
52 |
| - "matchPackageNames": [ |
53 |
| - "quay.io/lvh-images/kernel-images", |
| 51 | + enabled: false, |
| 52 | + matchPackageNames: [ |
| 53 | + 'quay.io/lvh-images/kernel-images', |
54 | 54 | ],
|
55 |
| - "matchUpdateTypes": [ |
56 |
| - "major", |
57 |
| - "minor" |
| 55 | + matchUpdateTypes: [ |
| 56 | + 'major', |
| 57 | + 'minor', |
58 | 58 | ],
|
59 | 59 | },
|
60 | 60 | {
|
61 |
| - "groupName": "all github action dependencies", |
62 |
| - "groupSlug": "all-github-action", |
63 |
| - "extends": ["schedule:monthly"], |
64 |
| - "matchPaths": [ |
65 |
| - ".github/workflows/**" |
66 |
| - ], |
67 |
| - "matchUpdateTypes": [ |
68 |
| - "major", |
69 |
| - "minor", |
70 |
| - "digest", |
71 |
| - "patch", |
72 |
| - "pin", |
73 |
| - "pinDigest" |
74 |
| - ] |
| 61 | + groupName: 'all github action dependencies', |
| 62 | + groupSlug: 'all-github-action', |
| 63 | + extends: [ |
| 64 | + 'schedule:monthly', |
| 65 | + ], |
| 66 | + matchFileNames: [ |
| 67 | + '.github/workflows/**', |
| 68 | + ], |
| 69 | + matchUpdateTypes: [ |
| 70 | + 'major', |
| 71 | + 'minor', |
| 72 | + 'digest', |
| 73 | + 'patch', |
| 74 | + 'pin', |
| 75 | + 'pinDigest', |
| 76 | + ], |
75 | 77 | },
|
76 | 78 | {
|
77 |
| - "groupName": "all go dependencies master", |
78 |
| - "groupSlug": "all-go-deps-master", |
79 |
| - "extends": ["schedule:monthly"], |
80 |
| - "matchFiles": [ |
81 |
| - "go.mod", |
82 |
| - "go.sum" |
83 |
| - ], |
84 |
| - "postUpdateOptions": [ |
85 |
| - // update source import paths on major updates |
86 |
| - "gomodUpdateImportPaths", |
87 |
| - ], |
88 |
| - "matchUpdateTypes": [ |
89 |
| - "major", |
90 |
| - "minor", |
91 |
| - "digest", |
92 |
| - "patch", |
93 |
| - "pin", |
94 |
| - "pinDigest" |
95 |
| - ], |
96 |
| - "matchBaseBranches": [ |
97 |
| - "master" |
| 79 | + groupName: 'all go dependencies master', |
| 80 | + groupSlug: 'all-go-deps-master', |
| 81 | + extends: [ |
| 82 | + 'schedule:monthly', |
| 83 | + ], |
| 84 | + matchFileNames: [ |
| 85 | + 'go.mod', |
| 86 | + 'go.sum', |
| 87 | + ], |
| 88 | + postUpdateOptions: [ |
| 89 | + // update source import paths on major updates |
| 90 | + 'gomodUpdateImportPaths', |
| 91 | + ], |
| 92 | + matchUpdateTypes: [ |
| 93 | + 'major', |
| 94 | + 'minor', |
| 95 | + 'digest', |
| 96 | + 'patch', |
| 97 | + 'pin', |
| 98 | + 'pinDigest', |
| 99 | + ], |
| 100 | + matchBaseBranches: [ |
| 101 | + 'master', |
98 | 102 | ],
|
99 | 103 | },
|
100 | 104 | {
|
101 |
| - "groupName": "Go", |
102 |
| - "extends": ["schedule:monthly"], |
103 |
| - "matchDepNames": [ |
104 |
| - "go", |
105 |
| - "docker.io/library/golang" |
| 105 | + groupName: 'Go', |
| 106 | + extends: [ |
| 107 | + 'schedule:monthly', |
| 108 | + ], |
| 109 | + matchDepNames: [ |
| 110 | + 'go', |
| 111 | + 'docker.io/library/golang', |
106 | 112 | ],
|
107 | 113 | },
|
108 | 114 | {
|
109 |
| - // Avoid updating patch releases of golang in go.mod |
110 |
| - "enabled": "false", |
111 |
| - "matchFiles": [ |
112 |
| - "go.mod", |
| 115 | + enabled: false, |
| 116 | + matchFileNames: [ |
| 117 | + 'go.mod', |
| 118 | + ], |
| 119 | + matchDepNames: [ |
| 120 | + 'go', |
113 | 121 | ],
|
114 |
| - "matchDepNames": [ |
115 |
| - "go" |
| 122 | + matchDatasources: [ |
| 123 | + 'golang-version', |
116 | 124 | ],
|
117 |
| - "matchDatasources": [ |
118 |
| - "golang-version" |
| 125 | + matchUpdateTypes: [ |
| 126 | + 'patch', |
119 | 127 | ],
|
120 |
| - "matchUpdateTypes": [ |
121 |
| - "patch" |
| 128 | + matchBaseBranches: [ |
| 129 | + 'master', |
122 | 130 | ],
|
123 |
| - "matchBaseBranches": [ |
124 |
| - "master" |
125 |
| - ] |
126 | 131 | },
|
127 | 132 | {
|
128 |
| - "matchDepNames": [ |
129 |
| - "quay.io/lvh-images/kernel-images", |
| 133 | + matchDepNames: [ |
| 134 | + 'quay.io/lvh-images/kernel-images', |
130 | 135 | ],
|
131 |
| - "versioning": "regex:^((?<compatibility>[a-z0-9-]+)|((?<major>\\d+)\\.(?<minor>\\d+)))\\-(?<patch>\\d+)\\.(?<build>\\d+)(@(?<currentDigest>sha256:[a-f0-9]+))?$" |
| 136 | + versioning: 'regex:^((?<compatibility>[a-z0-9-]+)|((?<major>\\d+)\\.(?<minor>\\d+)))\\-(?<patch>\\d+)\\.(?<build>\\d+)(@(?<currentDigest>sha256:[a-f0-9]+))?$', |
132 | 137 | },
|
133 | 138 | {
|
134 |
| - "groupName": "all lvh-images main", |
135 |
| - "groupSlug": "all-lvh-images-main", |
136 |
| - "matchPackageNames": [ |
137 |
| - "quay.io/lvh-images/kernel-images", |
| 139 | + groupName: 'all lvh-images main', |
| 140 | + groupSlug: 'all-lvh-images-main', |
| 141 | + matchPackageNames: [ |
| 142 | + 'quay.io/lvh-images/kernel-images', |
138 | 143 | ],
|
139 |
| - "matchUpdateTypes": [ |
140 |
| - "digest", |
141 |
| - "patch", |
142 |
| - "pin", |
143 |
| - "pinDigest" |
| 144 | + matchUpdateTypes: [ |
| 145 | + 'digest', |
| 146 | + 'patch', |
| 147 | + 'pin', |
| 148 | + 'pinDigest', |
144 | 149 | ],
|
145 | 150 | },
|
146 | 151 | ],
|
147 |
| - "customManagers": [ |
| 152 | + customManagers: [ |
148 | 153 | {
|
149 |
| - "customType": "regex", |
150 |
| - "fileMatch": [ |
151 |
| - "^\\.github/workflows/[^/]+\\.ya?ml$", |
| 154 | + customType: 'regex', |
| 155 | + fileMatch: [ |
| 156 | + '^\\.github/workflows/[^/]+\\.ya?ml$', |
152 | 157 | ],
|
153 | 158 | // This regex manages version strings in GitHub actions workflow files,
|
154 | 159 | // similar to the examples shown here:
|
155 | 160 | // https://docs.renovatebot.com/modules/manager/regex/#advanced-capture
|
156 |
| - "matchStrings": [ |
157 |
| - "# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+version: (?<currentValue>.*)", |
158 |
| - "# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+ ['\"]?(?<currentValue>[^'\"\\s]*)" |
159 |
| - ] |
| 161 | + matchStrings: [ |
| 162 | + '# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+version: (?<currentValue>.*)', |
| 163 | + '# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+ [\'"]?(?<currentValue>[^\'"\\s]*)', |
| 164 | + ], |
160 | 165 | },
|
161 |
| - ] |
| 166 | + ], |
162 | 167 | }
|
0 commit comments