From b7c415538463db96f37ea6c940a6d34fcf165cbc Mon Sep 17 00:00:00 2001 From: Michael Krotscheck Date: Tue, 21 Jun 2016 13:42:34 -0700 Subject: [PATCH] Added node-security-project checks This projects' dependencies will now be checked against the node-security list of advisories. A build will fail if a CVE is detected. Change-Id: I9ec06fe00794f0b178389548ed0c88f6036b6e86 --- .nsprc | 0 package.json | 6 ++++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .nsprc diff --git a/.nsprc b/.nsprc new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json index 6cce2ca..40a00ca 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "index.js", "scripts": { "test": "exit 0", - "lint": "eslint ./" + "lint": "eslint ./", + "prepublish": "nsp check" }, "repository": { "type": "git", @@ -19,6 +20,7 @@ "homepage": "http://www.openstack.org/", "devDependencies": { "eslint": "^2.4.0", - "eslint-config-openstack": "2.0.0" + "eslint-config-openstack": "2.0.0", + "nsp": "^2.4.0" } }