fix(ci): clear stale audit-gate entries and bump fixed advisories
Why
Security gate fails on every PR (e.g. #1941): scripts/audit-gate.mjs exits 1 because its own anti-rot check found 4 ACCEPTED entries that are no longer reported (@discordjs/node-pre-gyp, rimraf, glob, minimatch) — and behind that, brace-expansion was blocking on a re-issued advisory id.
What
npm audit fix(non-breaking):brace-expansion5.0.7 → 5.0.9 (GHSA-mh99-v99m-4gvg),valibot1.2.0 → 1.4.2 (GHSA-5qjj-4xww-7phc); nested vulnerable brace-expansion copies deduped.- Deleted the 5 stale ACCEPTED entries from
scripts/audit-gate.mjs(the @discordjs/opus → node-pre-gyp chain is now only reported as moderate, below the gate's high/critical bar). react-router/react-router-domstay accepted pending the v8 migration (#1878) — untouched.
Verification
node scripts/audit-gate.mjs → exit 0: "No unaccepted high/critical findings in production dependencies." Production audit now reports only the accepted react-router pair as high.
Relates #1879 (dev toolchain advisories — partial; this clears the production-visible ones).
Summary by cubic
Fixes the CI security audit gate by removing stale ACCEPTED entries and applying non‑breaking npm audit fix updates. The gate now passes; only the accepted react-router pair remains high until the v8 migration.
-
Bug Fixes
- Removed 5 stale ACCEPTED entries in
scripts/audit-gate.mjsfor the@discordjs/node-pre-gyp→rimraf→glob→minimatch→brace-expansionchain (no longer high/critical in prod). - Gate exits 0;
react-router/react-router-domremain accepted pending v8 migration (#1878).
- Removed 5 stale ACCEPTED entries in
-
Dependencies
brace-expansion5.0.7 → 5.0.9 (GHSA-mh99-v99m-4gvg).valibot1.2.0 → 1.4.2 (GHSA-5qjj-4xww-7phc).
Summary by CodeRabbit
- Chores
- Removed several accepted production-audit entries and their associated advisory rationale and version pinning.