diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..f6894e1 --- /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: + - inquirer > lodash: + patched: '2020-05-07T01:15:14.917Z' diff --git a/package.json b/package.json index 8fec1f2..8c56de5 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,9 @@ "test:unit": "ava --verbose", "check-coverage": "nyc check-coverage --statements 100 --branches 100 --functions 100 --lines 100", "report-coverage": "cat ./coverage/lcov.info | node_modules/.bin/codecov", - "semantic-release": "semantic-release pre && npm publish && semantic-release post" + "semantic-release": "semantic-release pre && npm publish && semantic-release post", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "bin": { "wtsc": "app/index.js" @@ -42,7 +44,8 @@ "colors": "^1.1.2", "inquirer": "^1.0.3", "inquiry-traverser": "^0.3.0", - "object-assign": "^4.0.1" + "object-assign": "^4.0.1", + "snyk": "^1.319.1" }, "devDependencies": { "ava": "^0.16.0", @@ -72,5 +75,6 @@ "include": [ "app/*" ] - } + }, + "snyk": true }