Skip to content

Commit f8e2b0a

Browse files
committed
ci: add minimumReleaseAge to Renovate config
This change introduces a 4-hour delay for all npm dependency updates to mitigate the risk of dependency chain attacks. This provides a window to detect and react to malicious publications. The cross-repo Angular dependencies are excluded from this rule as they are trusted sources.
1 parent 7016411 commit f8e2b0a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

renovate-presets/default.json5

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,20 @@
7070
matchManagers: ['npm'],
7171
},
7272

73+
// Delay NPM updates to mitigate dependency chain attacks by malicious actors.
74+
// This rule only affects direct dependencies.
75+
{
76+
minimumReleaseAge: '4 hours',
77+
matchManagers: ['npm'],
78+
excludePackageNames: [
79+
'@angular-devkit/**',
80+
'@angular/**',
81+
'@schematics/**',
82+
'angular/**',
83+
'ng-packagr',
84+
],
85+
},
86+
7387
// ============================================================================
7488
// ECOSYSTEM-SPECIFIC GROUPING
7589
// ============================================================================
@@ -95,6 +109,7 @@
95109
enabled: true, // Enable NPM updates of cross-repo dependencies on all branches.
96110
groupName: 'cross-repo angular dependencies',
97111
followTag: 'next',
112+
minimumReleaseAge: null,
98113
separateMajorMinor: false,
99114
schedule: ['at any time'],
100115
matchPackageNames: [

0 commit comments

Comments
 (0)