Repository navigation
ci(security): audit prod deps strictly, allowlist dev-only advisories - #16
Merged
Merged
Conversation
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>
4 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
glob ^13minimatch ^10npm audit --omit=devreports 0 vulnerabilities: the published package isn't affected.npm audit fix --forcewould downgrade to jest 29 / typedoc 0.23.What changed
npm auditstep (ci.yml + security.yml) →--omit=dev, so any production advisory still fails the build.audit-cistep →--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-foundflags entries once they can be removed.security:audit/security:checknpm scripts updated to match.Verification
npm run security:audit: 0 vulnerabilitiesnpm run security:check: passes, reports the 2 allowlisted advisoriesFollow-up
Remove the allowlist entries once jest/ts-jest and typedoc allow glob ≥14.0.2 / minimatch ≥11.0.1.
🤖 Generated with Claude Code