diff --git a/.snyk b/.snyk new file mode 100644 index 000000000..b07e5a72d --- /dev/null +++ b/.snyk @@ -0,0 +1,18 @@ +# 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: + - lodash: + patched: '2020-05-04T03:43:40.838Z' + - async > lodash: + patched: '2020-05-04T03:43:40.838Z' + - eslint > lodash: + patched: '2020-05-04T03:43:40.838Z' + - tidy-markdown > lodash: + patched: '2020-05-04T03:43:40.838Z' + - eslint > inquirer > lodash: + patched: '2020-05-04T03:43:40.838Z' + - eslint > table > lodash: + patched: '2020-05-04T03:43:40.838Z' diff --git a/package.json b/package.json index bdb74b1e4..8ae5d5ec5 100644 --- a/package.json +++ b/package.json @@ -199,7 +199,8 @@ "universal-analytics": "^0.4.16", "which": "^1.3.0", "winston": "^2.4.0", - "yaml-front-matter": "3.4.0" + "yaml-front-matter": "3.4.0", + "snyk": "^1.317.0" }, "activationHooks": [ "core:loaded-shell-environment" @@ -422,10 +423,11 @@ "scripts": { "build-options": "node script/build-options.js", "docs": "npm run build-options && coffee docs/", - "prepublish": "npm run docs", + "prepublish": "npm run snyk-protect && npm run docs", "lint": "coffeelint src/ spec/", "code-docs": "codo && open docs/code/index.html", - "test": "atom --test spec" + "test": "atom --test spec", + "snyk-protect": "snyk protect" }, "config": { "next-update": { @@ -450,5 +452,6 @@ "underscore-plus", "prettydiff2" ] - } + }, + "snyk": true } \ No newline at end of file