-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.json
More file actions
230 lines (230 loc) · 7.02 KB
/
default.json
File metadata and controls
230 lines (230 loc) · 7.02 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": "Shared Renovate preset: Security-hardened for supply chain protection. Multi-ecosystem support (JS/Bun, Nix, Terraform, Ansible, Docker, GitHub Actions). Increased stabilityDays, unpublishSafe, careful automerge.",
"extends": [
"config:recommended",
"npm:unpublishSafe"
],
"platformAutomerge": true,
"ignoreTests": false,
"timezone": "Europe/Prague",
"schedule": ["before 06:00 on monday"],
"labels": ["dependencies", "renovate"],
"dependencyDashboard": true,
"semanticCommits": "enabled",
"commitMessagePrefix": "chore(deps):",
"commitMessageAction": "update",
"commitMessageTopic": "{{depName}}",
"stabilityDays": 7,
"minimumReleaseAge": "7 days",
"prConcurrentLimit": 4,
"prHourlyLimit": 0,
"prCreation": "not-pending",
"rebaseWhen": "behind-base-branch",
"ignorePaths": ["**/node_modules/**", "**/vendor/**", "**/dist/**", "**/build/**"],
"vulnerabilityAlerts": {
"enabled": true,
"labels": ["security", "priority:high"],
"assignAutomerge": false,
"transitiveRemediation": true,
"prPriority": 100
},
"lockFileMaintenance": {
"enabled": true,
"schedule": ["before 06:00 on monday"],
"automerge": true
},
"packageRules": [
{
"description": "npm/pnpm/yarn: Enable deduplication, pin dependencies",
"matchManagers": ["npm", "pnpm", "yarn"],
"postUpdateOptions": ["npmDedupe", "pnpmDedupe", "yarnDedupeFewer"],
"rangeStrategy": "pin"
},
{
"description": "GitHub Actions: Pin to digests for security",
"matchManagers": ["github-actions"],
"pinDigests": true
},
{
"description": "Group all non-major updates together",
"matchManagers": [
"npm",
"bun",
"pnpm",
"yarn",
"docker",
"github-actions",
"nix",
"terraform",
"ansible"
],
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"groupName": "all non-major updates",
"separateMinorPatch": false
},
{
"description": "Major updates: Require dashboard approval",
"matchUpdateTypes": ["major"],
"groupName": "major updates (separate)",
"prPriority": -1,
"dependencyDashboardApproval": true,
"automerge": false
},
{
"description": "GitHub Actions: Automerge (pinned digests are safe)",
"matchManagers": ["github-actions"],
"groupName": "CI: GitHub Actions",
"separateMinorPatch": false,
"automerge": true,
"automergeType": "pr"
},
{
"description": "Dev tooling: Automerge ONLY for trusted packages",
"matchDepTypes": ["devDependencies"],
"matchPackagePatterns": [
"^@biomejs/",
"^oxlint$",
"^@oxc-project/",
"^@types/",
"^typescript$",
"^vitest",
"^@vitest/",
"^jest$",
"^@testing-library/",
"^prettier$",
"^eslint$",
"^@eslint/"
],
"groupName": "Dev tooling (trusted)",
"separateMinorPatch": false,
"automerge": true,
"automergeType": "pr"
},
{
"description": "Other devDependencies: NO automerge (supply chain risk)",
"matchDepTypes": ["devDependencies"],
"excludePackagePatterns": [
"^@biomejs/",
"^oxlint$",
"^@oxc-project/",
"^@types/",
"^typescript$",
"^vitest",
"^@vitest/",
"^jest$",
"^@testing-library/",
"^prettier$",
"^eslint$",
"^@eslint/"
],
"groupName": "Dev dependencies (review required)",
"automerge": false
},
{
"description": "Production dependencies: NEVER automerge",
"matchDepTypes": ["dependencies", "peerDependencies", "optionalDependencies"],
"automerge": false,
"prPriority": 10
},
{
"description": "Biome: Trusted, automerge",
"matchPackagePatterns": ["^@biomejs/"],
"groupName": "Biome",
"separateMinorPatch": false,
"automerge": true,
"automergeType": "pr"
},
{
"description": "Oxlint: Trusted, automerge",
"matchPackagePatterns": ["^oxlint", "^@oxc-project/"],
"groupName": "Oxlint",
"separateMinorPatch": false,
"automerge": true,
"automergeType": "pr"
},
{
"description": "TypeScript types: Trusted, automerge",
"matchPackagePatterns": ["^@types/", "^typescript$"],
"groupName": "TypeScript",
"separateMinorPatch": false,
"automerge": true,
"automergeType": "pr"
},
{
"description": "Testing tools: Trusted, automerge",
"matchPackagePatterns": ["^vitest", "^@vitest/", "^jest", "^@testing-library/"],
"groupName": "Testing tools",
"separateMinorPatch": false,
"automerge": true,
"automergeType": "pr"
},
{
"description": "Nix: Group together, high priority",
"matchManagers": ["nix"],
"groupName": "Nix",
"separateMinorPatch": false,
"prPriority": 5
},
{
"description": "Terraform: Group together, high priority",
"matchManagers": ["terraform"],
"groupName": "Terraform",
"separateMinorPatch": false,
"prPriority": 5
},
{
"description": "Ansible: Group together, high priority",
"matchManagers": ["ansible"],
"groupName": "Ansible",
"separateMinorPatch": false,
"prPriority": 5
},
{
"description": "Docker digests: Manual review required",
"matchManagers": ["docker"],
"matchUpdateTypes": ["pin"],
"groupName": "Docker digests",
"automerge": false,
"prPriority": 10
},
{
"description": "⚠️ SHAI-HULUD: Block known compromised packages",
"matchPackageNames": [
"@postman/tunnel-agent",
"posthog-node",
"posthog-js",
"@posthog/agent",
"@asyncapi/specs",
"@asyncapi/openapi-schema-parser",
"@asyncapi/avro-schema-parser",
"@asyncapi/json-schema-parser",
"@asyncapi/raml-dt-schema-parser",
"zapier-sdk",
"zapier-platform-core",
"zapier-platform-cli",
"@zapier/zapier-sdk",
"@ensdomains/ensjs",
"@ensdomains/content-hash",
"@ensdomains/ens-validation",
"ethereum-ens",
"@postman/postman-mcp-cli",
"angulartics2",
"koa2-swagger-ui",
"tinycolor2",
"ngx-bootstrap"
],
"enabled": true,
"prPriority": -100,
"automerge": false,
"dependencyDashboardApproval": true,
"prBodyNotes": [
"⚠️ **SECURITY WARNING**: This package was affected by the Shai-Hulud 2.0 supply chain attack (November 2025).",
"Before merging, verify:",
"- [ ] The version is from AFTER the malicious versions were removed",
"- [ ] Check [Datadog IOC list](https://github.com/DataDog/indicators-of-compromise/tree/main/shai-hulud-2.0) for affected versions",
"- [ ] Run `./scripts/detect.sh` from [dont-be-shy-hulud](https://github.com/miccy/dont-be-shy-hulud)"
]
}
]
}