Skip to content

Commit 6eb8409

Browse files
authored
Merge pull request #246 from consideRatio/fix-for-audit-cron-job
CI: npm audit cronjob details
2 parents 1cf2143 + f8b02f9 commit 6eb8409

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.travis.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@ jobs:
3535
install:
3636
- npm ci --production
3737
script:
38-
- npm audit
38+
# This audit will fail for moderate/high/critical and exclude low
39+
- npm audit --production --audit-level=moderate
3940
after_success:
40-
- 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."
4142
after_failure:
42-
- 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

Comments
 (0)