We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c4d360 commit f8b02f9Copy full SHA for f8b02f9
.travis.yml
@@ -35,8 +35,11 @@ jobs:
35
install:
36
- npm ci --production
37
script:
38
- - npm audit
+ # This audit will fail for moderate/high/critical and exclude low
39
+ - npm audit --production --audit-level=moderate
40
after_success:
- - echo "package-lock.json is considered secure according to 'npm audit'."
41
+ - echo "package-lock.json is considered at least moderately secure according to a npm audit."
42
after_failure:
- - echo "package-lock.json should be updated with 'npm audit fix'."
43
+ - echo "package-lock.json contain a package with a moderate or worse vulnerability!"
44
+ - echo "Running 'npm audit fix --production' could fix the vulnerability. Let's try..."
45
+ - npm audit fix --production
0 commit comments