Skip to content

Commit 7832207

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 7832207

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

renovate-presets/default.json5

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@
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+
},
79+
7380
// ============================================================================
7481
// ECOSYSTEM-SPECIFIC GROUPING
7582
// ============================================================================
@@ -95,6 +102,7 @@
95102
enabled: true, // Enable NPM updates of cross-repo dependencies on all branches.
96103
groupName: 'cross-repo angular dependencies',
97104
followTag: 'next',
105+
minimumReleaseAge: null,
98106
separateMajorMinor: false,
99107
schedule: ['at any time'],
100108
matchPackageNames: [

0 commit comments

Comments
 (0)