diff --git a/app/.snyk b/app/.snyk new file mode 100644 index 0000000..4b11fe9 --- /dev/null +++ b/app/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - async > lodash: + patched: '2019-07-05T07:42:06.629Z' diff --git a/app/package.json b/app/package.json index 8631663..fc205be 100644 --- a/app/package.json +++ b/app/package.json @@ -5,7 +5,9 @@ "main": "server.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "start": "nodemon server.js" + "start": "nodemon server.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "nicole becher", "license": "ISC", @@ -36,6 +38,8 @@ "request-json": "^0.6.2", "sentencer": "^0.1.5", "serve-static": "^1.11.1", - "swagger-jsdoc": "^1.3.0" - } + "swagger-jsdoc": "^1.3.0", + "snyk": "^1.192.0" + }, + "snyk": true }