Skip to content

ci(security): audit prod deps strictly, allowlist dev-only advisories - #16

Merged
markhazleton merged 1 commit into
mainfrom
ci/dev-only-audit-allowlist
Nov 21, 2026
Merged

markhazleton merged 1 commit into
mainfrom
ci/dev-only-audit-allowlist

Conversation

@markhazleton

Copy link
Copy Markdown
Owner

Why

The Security workflow has failed every week since at least Nov 2, on two moderate, dev-only advisories that have no upstream fix yet:

Advisory Package Pulled in by Blocker
GHSA-3g3m-2fjr-6pw4 glob 9.0.0–14.0.1 jest 30, test-exclude jest 30.5.2 (latest) pins glob ^13
GHSA-g3hv-75wg-m249 minimatch 7.0.0–11.0.0 typedoc 0.28, test-exclude typedoc 0.28.20 (latest) pins minimatch ^10

npm audit --omit=dev reports 0 vulnerabilities: the published package isn't affected. npm audit fix --force would downgrade to jest 29 / typedoc 0.23.

What changed

  • npm audit step (ci.yml + security.yml) → --omit=dev, so any production advisory still fails the build.
  • audit-ci step → --config audit-ci.jsonc, which still audits all dependencies at moderate and allowlists only these two GHSA IDs, so new dev advisories still fail. show-not-found flags entries once they can be removed.
  • security:audit / security:check npm scripts updated to match.

Verification

  • npm run security:audit: 0 vulnerabilities
  • npm run security:check: passes, reports the 2 allowlisted advisories
  • Pre-commit hook (lint + 339 tests) passes

Follow-up

Remove the allowlist entries once jest/ts-jest and typedoc allow glob ≥14.0.2 / minimatch ≥11.0.1.

🤖 Generated with Claude Code

The Security workflow has failed weekly on two moderate advisories that
only affect dev tooling and have no upstream fix yet:
- GHSA-3g3m-2fjr-6pw4 (glob, via jest 30 and test-exclude)
- GHSA-g3hv-75wg-m249 (minimatch, via typedoc 0.28 and test-exclude)

`npm audit` now runs with --omit=dev so any production advisory still
fails the build. audit-ci keeps auditing all dependencies via
audit-ci.jsonc, which allowlists only these two IDs, so new dev
advisories still fail too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@markhazleton
markhazleton merged commit a0e61e6 into main Nov 21, 2026
14 checks passed
@markhazleton
markhazleton deleted the ci/dev-only-audit-allowlist branch November 21, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant