Commit 2ff3aef
authored
chore(security): require 24h cooldown on npm packages (#42)
Defense against supply-chain attacks (e.g. shai-hulud, nx-style
compromised publishes) by blocking install of any package version
published less than 24h ago.
- .npmrc: new; `min-release-age=1` (npm 11.5+ native; older npm ignores it)
- .github/dependabot.yml: add `cooldown.default-days: 1` to the existing
npm entry, with @conduction/* excluded so first-party releases reach
this repo immediately
For release-day consumption of fresh @conduction/* deps, use
`npm install --min-release-age=0 @conduction/pkg@x.y.z`.1 parent 9d47273 commit 2ff3aef
2 files changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments