aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci/scripts/npm-audit
diff options
context:
space:
mode:
authorThomas Huang <tmashuang@users.noreply.github.com>2019-06-07 06:00:27 +0800
committerGitHub <noreply@github.com>2019-06-07 06:00:27 +0800
commit3dc7e29a51a52f18ecbd48f03ac26e5e899910f8 (patch)
tree0586f385580003c548d5695d666ac03cc7db0586 /.circleci/scripts/npm-audit
parentb27fdef5e47c48e18f2c2b2961b28153d8f68486 (diff)
parentea142a4dd65c45694f663885d509aae147430f97 (diff)
downloadtangerine-wallet-browser-3dc7e29a51a52f18ecbd48f03ac26e5e899910f8.tar.gz
tangerine-wallet-browser-3dc7e29a51a52f18ecbd48f03ac26e5e899910f8.tar.zst
tangerine-wallet-browser-3dc7e29a51a52f18ecbd48f03ac26e5e899910f8.zip
Merge pull request #6690 from MetaMask/npm-audit
Re-enable npm audit CI job
Diffstat (limited to '.circleci/scripts/npm-audit')
-rwxr-xr-x.circleci/scripts/npm-audit12
1 files changed, 12 insertions, 0 deletions
diff --git a/.circleci/scripts/npm-audit b/.circleci/scripts/npm-audit
new file mode 100755
index 000000000..00a6876ff
--- /dev/null
+++ b/.circleci/scripts/npm-audit
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+set -e
+set -u
+set -o pipefail
+
+if ! npm audit
+then
+ ! npm audit --json > audit.json
+ printf '%s\n' ''
+ node .circleci/scripts/npm-audit-check.js
+fi