Skip to content

Replace bare npm audit with audit-config-aware script#453

Open
kdenhartog wants to merge 4 commits intomainfrom
security/audit-config-integration
Open

Replace bare npm audit with audit-config-aware script#453
kdenhartog wants to merge 4 commits intomainfrom
security/audit-config-integration

Conversation

@kdenhartog
Copy link
Copy Markdown
Member

@kdenhartog kdenhartog commented Mar 20, 2026

Summary

  • Adds scripts/audit_deps.js: fetches brave/audit-config at runtime, runs npm audit --json, and exits non-zero only for advisories not on the shared ignore list — mirroring the logic in brave-core/script/audit_deps.py
  • Adds "audit_deps" npm script wired to the new script
  • Replaces bare npm audit in unit-tests.yml with npm run audit_deps

@kdenhartog kdenhartog requested review from a team, mihaiplesa, remusao and yshym as code owners March 20, 2026 09:20
@kdenhartog kdenhartog marked this pull request as draft March 20, 2026 09:22
@kdenhartog kdenhartog marked this pull request as ready for review March 20, 2026 09:52
@kdenhartog kdenhartog enabled auto-merge (squash) March 20, 2026 09:52
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.

2 participants