diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..270e278 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - m2m-status > request-promise > request-promise-core > lodash: + patched: '2020-05-04T08:20:35.637Z' diff --git a/package.json b/package.json index bcce883..a5bf948 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "src", "scripts": { "start": "node src", - "start:dev": "nodemon -- --inspect src" + "start:dev": "nodemon -- --inspect src", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "engines": { "node": ">=6.3" @@ -32,7 +34,8 @@ "m2m-status": "^1.0.0", "raven": "^2.0.0", "winston": "^2.2.0", - "winston-loggly": "^1.3.1" + "winston-loggly": "^1.3.1", + "snyk": "^1.317.0" }, "devDependencies": { "eslint": "4.19.1", @@ -63,5 +66,6 @@ "always" ] } - } + }, + "snyk": true }