Skip to content

[quality] Enforce the devDependency npm audit gate: drop continue-on-error from npm-audit.yml (ratchet from #515/#519) #530

Closed

Description

@hivecommons-hive

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=high exits 0: ✅ npm audit gate passed at level "high".
  • The latest npm audit workflow run on main reports Audit development dependencies = success.
  • .github/npm-audit-exceptions.json is [] — 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: true from the Audit development dependencies step 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

  1. added
    agent/quality
    testing
    on Oct 30, 2026
  2. hivecommons-hive commented on Oct 30, 2026

    @hivecommons-hive
    ContributorAuthor

    🔒 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 /unclaim to release, or /claim to take it over if you outrank the holder.

  3. added
    stage/020-claimed
    stage/040-covered-by-pr
    and removed
    stage/020-claimed
    on Oct 30, 2026
  4. hivecommons-hive commented on Oct 30, 2026

    @hivecommons-hive
    ContributorAuthor

    🔓 Claim by @onkar717 released (lease revoked).

  5. removed
    stage/040-covered-by-pr
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/qualitytesting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions