Skip to content

Commit 2ff3aef

Browse files
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

File tree

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,9 @@ updates:
1818
time: "03:00"
1919
timezone: Europe/Paris
2020
open-pull-requests-limit: 10
21+
cooldown:
22+
default-days: 1
23+
include:
24+
- "*"
25+
exclude:
26+
- "@conduction/*"

.npmrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Supply-chain hardening: reject any npm package published less than
2+
# 24h ago. Compromised first-party-Conduction packages are excluded via
3+
# Dependabot cooldown (.github/dependabot.yml); for fresh @conduction/*
4+
# releases, override per-install with `npm install --min-release-age=0`.
5+
min-release-age=1

0 commit comments

Comments
 (0)