0.0.3 • Published 6 years ago
@medic/audit-dependencies v0.0.3
Intro
npm audit is great but...
1. there's no way to whitelist advisories so you don't see them again, and
2. if you run it all the time (eg: as part of CI) it'll block you.
Usage
- Run
npx @medic/audit-dependencies audit. This will runnpm audit. If you have any advisories, either fix them, or add the IDs to thepermittedarray in the.auditrc.jsonfile, then runauditagain. - In your CI add a step for
npx @medic/audit-dependencies check. This will check yourpackage-lock.jsonagainst the one that's been verified and fail if it's changed.