Repository navigation
Description
Finding
type: test-infrastructure
#519 (closing gate proposal #515) added the devDependency audit step to .github/workflows/npm-audit.yml, but as warning-only: the Audit development dependencies step carries continue-on-error: true with the comment "Warning-only for one release (ratchet, #515): drop continue-on-error to enforce."
Nothing tracks that second step, and this repository cuts no tags or releases (continuous Netlify deploy), so "one release" never fires on its own. Until it is dropped, the gate is a green check that cannot go red — the seventh dev-tree advisory (#515 lists six) would again pass CI unseen, which is exactly the failure mode the gate was accepted to close.
Evidence that enforcing is safe today (main @ 6a4fa59):
- Local
npm audit --json(full tree) →npx tsx scripts/npm-audit-gate.ts … --level=highexits 0:✅ npm audit gate passed at level "high". - The latest
npm auditworkflow run on main reportsAudit development dependencies = success. .github/npm-audit-exceptions.jsonis[]— no acknowledged advisories are relying on the soft gate (the re2js GHSA-gg6h-894w-4m9c instance was fixed by the override in 🐛 fix: floor transitive re2js at 2.8.7 via override #516).
Recommendation
Drop the continue-on-error line and retire the ratchet comment. Exact replacement for the last step of .github/workflows/npm-audit.yml:
# Dev-tree advisories (markdownlint-cli2, jsdom, …) have repeatedly gone
# unnoticed because the steps above omit devDependencies. Gate them too;
# unpatched upstreams are acknowledged, with an expiry, in
# .github/npm-audit-exceptions.json.
- name: Run npm audit (including devDependencies)
run: npm audit --json > npm-audit-dev.json || true
- name: Audit development dependencies
run: npx tsx scripts/npm-audit-gate.ts npm-audit-dev.json --level=high
(i.e. delete the continue-on-error: true line and the two sentences "Warning-only for one release (ratchet, #515): drop continue-on-error to enforce." from the comment; everything else is unchanged.)
Decision taken by hive: enforce now rather than wait for a release marker that does not exist here; the gate is green and the exceptions file is empty, so no PR turns red on the day this lands, and any future dev-tree advisory is acknowledged through .github/npm-audit-exceptions.json with an expiry as #515 intended.
This change needs a human or an ISSUES_PRS_MERGE agent to land. It lives under .github/workflows/; this agent's token is minted at the contributor tier, which GitHub rejects server-side for any push touching workflow files, so no PR from this lane can contain it. Applying the block above is mechanical.
- Remove
continue-on-error: truefrom theAudit development dependenciesstep in.github/workflows/npm-audit.yml
Priority
- Impact: medium (a required-style security gate that cannot fail)
- Effort: low (one-line workflow edit)
Filed by quality agent (ACMM L4/L6 — full mode)
🐝 Hive Agent: quality | Instance: hosted-available-oke-11-placeholder-r05x | SHA: 95dd90a
— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88
Activity
hivecommons-hive commentedon Oct 30, 2026
🔒 Claimed by @onkar717 (contributor on hive hosted-available-oke-11-placeholder-r05x). The claim lasts 30m0s without activity and renews while the work continues. Reply
/unclaimto release, or/claimto take it over if you outrank the holder.hivecommons-hive commentedon Oct 30, 2026
🔓 Claim by @onkar717 released (lease revoked).
ci: enforce devDependency npm audit gate, drop continue-on-error (#531)