From fc14d9ce7833a5a11239a891e91d1fb974a1fe75 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 26 Nov 2016 16:01:14 +0000 Subject: [PATCH] Add node security check --- package.json | 1 + scripts/runtests | 3 +++ 2 files changed, 4 insertions(+) diff --git a/package.json b/package.json index 4d08fcf..506bb28 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "nsp": "=2.6.1", "postcss-cli": "=2.6.0", "sass-lint": "=1.9.1", + "snyk": "=1.20.0", "uglify-js": "=2.7.3" } } diff --git a/scripts/runtests b/scripts/runtests index fdf9461..8c6bc48 100755 --- a/scripts/runtests +++ b/scripts/runtests @@ -2,6 +2,7 @@ set -e +export PATH=node_modules/.bin:${PATH} export PATH=env/bin:${PATH} export DEBUG=true export IN_TEST=true @@ -15,3 +16,5 @@ npm test bandit -r project/ manage.py safety check +nsp check +snyk test