diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..aead8304 --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# 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: + - openapi_optimise > lodash: + patched: '2020-05-05T07:58:25.429Z' + - pug > pug-code-gen > constantinople > babel-types > lodash: + patched: '2020-05-05T07:58:25.429Z' + - pug > pug-filters > constantinople > babel-types > lodash: + patched: '2020-05-05T07:58:25.429Z' + - pug > pug-code-gen > pug-attrs > constantinople > babel-types > lodash: + patched: '2020-05-05T07:58:25.429Z' diff --git a/package.json b/package.json index d5aa9918..209b7ab4 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,8 @@ "redis": "^2.6.2", "rotating-file-stream": "^1.0.5", "supervisor": ">= 0.5.x", - "yargs": "^4.8.1" + "yargs": "^4.8.1", + "snyk": "^1.317.0" }, "devDependencies": { "node-sass": "^3.10.0" @@ -57,6 +58,9 @@ }, "scripts": { "start": "node_modules/.bin/supervisor -e 'js|json' app", - "startwin": "supervisor -e 'js' app" - } + "startwin": "supervisor -e 'js' app", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }