Commit e6f952d
fix(deps): add pnpm supply chain security hardening (#14421)
* chore: add pnpm supply chain security hardening
- Add onlyBuiltDependencies allowlist (@sentry/cli, esbuild, puppeteer)
- Set minimumReleaseAge to 1440 minutes (1 day) to block freshly published malicious versions
- Exempt @fern-api/* and @fern-fern/* from release age requirement
- Enable trustPolicy: no-downgrade to catch compromised maintainer accounts
- Enable blockExoticSubdeps to prevent transitive deps from using git/tarball sources
Context: axios supply chain attack (March 31, 2026) where compromised maintainer
account published malicious versions with a hidden RAT via postinstall scripts.
These settings would have prevented installation of the compromised versions.
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* fix: use trustPolicyIgnoreAfter instead of per-package exclusions
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
---------
Co-authored-by: Niels Swimberghe <3382717+Swimburger@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>1 parent 0dbc9b1 commit e6f952d
1 file changed
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 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 | + | |
14 | 45 | | |
15 | 46 | | |
16 | 47 | | |
| |||
0 commit comments