Skip to content

Commit 3f200b2

Browse files
committed
build: enable minimumReleaseAge to mitigate dependency chain attacks
This change configures pnpm's `minimumReleaseAge` setting to 4 hours (240 minutes). This is a security measure to mitigate dependency chain attacks, where malicious actors publish a new version of a dependency with malicious code and then trick users into updating to it before it can be discovered and reported. By delaying the adoption of new releases, we reduce the window of opportunity for such attacks. The list of excluded packages contains trusted and frequently updated dependencies from the Angular team, which are considered safe to use without this delay.
1 parent 0004737 commit 3f200b2

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"name": "@angular/build-tooling",
33
"version": "0.0.0-{SCM_HEAD_SHA}",
44
"private": true,
5-
"packageManager": "[email protected].0",
5+
"packageManager": "[email protected].1",
66
"engines": {
77
"npm": "Please use pnpm instead of NPM to install dependencies",
88
"yarn": "Please use pnpm instead of Yarn to install dependencies",
9-
"pnpm": "10.16.0"
9+
"pnpm": "10.16.1"
1010
},
1111
"scripts": {
1212
"prepare": "husky",

pnpm-workspace.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,40 @@ packages:
2222
- github-actions/saucelabs
2323
- github-actions/browserstack
2424
- github-actions/bazel/configure-remote
25+
# The minimum age of a release to be considered for dependency installation.
26+
# The value is in minutes (240 minutes = 4 hours).
27+
minimumReleaseAge: 240
28+
# List of packages to exclude from the minimum release age check.
29+
# Wildcards are not yet supported: https://github.com/pnpm/pnpm/issues/9983
30+
minimumReleaseAgeExclude:
31+
- '@angular-devkit/architect'
32+
- '@angular-devkit/build-angular'
33+
- '@angular-devkit/build-webpack'
34+
- '@angular-devkit/core'
35+
- '@angular-devkit/schematics-cli'
36+
- '@angular-devkit/schematics'
37+
- '@angular-devkit/architect-cli'
38+
- '@angular-devkit/architect'
39+
- '@angular/animations'
40+
- '@angular/benchpress'
41+
- '@angular/cdk'
42+
- '@angular/ng-dev'
43+
- '@angular/cli'
44+
- '@angular/ssr'
45+
- '@angular/common'
46+
- '@angular/compiler-cli'
47+
- '@angular/compiler'
48+
- '@angular/core'
49+
- '@angular/forms'
50+
- '@angular/language-service'
51+
- '@angular/localize'
52+
- '@angular/material'
53+
- '@angular/material-moment-adapter'
54+
- '@angular/platform-browser-dynamic'
55+
- '@angular/platform-browser'
56+
- '@angular/platform-server'
57+
- '@angular/router'
58+
- '@angular/service-worker'
59+
- '@ngtools/webpack'
60+
- '@schematics/angular'
61+
- 'ng-packagr'

0 commit comments

Comments
 (0)