Skip to content

Commit

Permalink
Add npm audit to ci pipeline
Browse files Browse the repository at this point in the history
I have created a wrapper for it, because `npm audit` itself _always_ fails if _any_ vulnerabilities are present, and we don't want to fail on low or moderate vulnerabilities. This issue has been PR'ed in npm, so if/when npm/cli#31 is merged and released then the command can be swapped for a basic `npm audit`.
  • Loading branch information
lennym committed Aug 1, 2018
1 parent d2ecc5d commit 059a27c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .drone.yml
Expand Up @@ -10,6 +10,15 @@ pipeline:
when:
event: [push, pull_request, tag]

audit:
image: node:8
secrets:
- npm_auth_token
commands:
- npx @lennym/ciaudit
when:
event: [push, pull_request, tag]

compile:
image: node:8
secrets:
Expand Down

0 comments on commit 059a27c

Please sign in to comment.