Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
npm audit fix (#261)
Browse files Browse the repository at this point in the history
* npm audit fix

* Update package-lock.json

* Ignore dev dependency audit warnings

* eliminate double audit
  • Loading branch information
carrolp authored Sep 22, 2021
1 parent 156fd17 commit 18f54eb
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 69 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ services:

before_install:
- echo "$DOCKERHUB_TOKEN" | docker login -u "icdevops" --password-stdin

script:
# Audit npm packages. Fail build whan a PR audit fails, otherwise report the vulnerability and proceed.
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then npm audit; else npm audit || true; fi
# Audit npm packages. Fail build whan a PR audit fails, otherwise report the vulnerability and proceed. See audit-ci for details of allowlisted packages etc.
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then npx audit-ci --config ./audit-ci.json; else npx audit-ci --config ./audit-ci.json || true; fi
- npm run lint
- npm test
- docker build --rm -t "quay.io/razee/remoteresources3decrypt:${TRAVIS_COMMIT}" .
Expand Down
5 changes: 5 additions & 0 deletions audit-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"low": true,
"_skip-dev": "Avoid vuln in 'underscore', pulled in by jsonlint dev dependency.",
"skip-dev": "true"
}
122 changes: 56 additions & 66 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 18f54eb

Please sign in to comment.