diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..0d42fe3 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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: + - lighthouse4u > lodash: + patched: '2020-05-01T06:32:26.976Z' + - lighthouse4u > lighthouse > inquirer > lodash: + patched: '2020-05-01T06:32:26.976Z' diff --git a/package.json b/package.json index cb31bfd..457bde3 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,9 @@ "start": "node index.js", "config": "node ./scripts/configure.js", "deconfig": "node ./scripts/deconfigure.js", - "local-test": "node scripts/run-test" + "local-test": "node scripts/run-test", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "GoDaddy.com Operating Company LLC", "license": "MIT", @@ -28,9 +30,11 @@ "express": "^4.16.4", "lighthouse4u": "^1.0.0", "lighthouse4u-s3": "^1.0.0", - "lighthouse4u-sqs": "^1.0.0" + "lighthouse4u-sqs": "^1.0.0", + "snyk": "^1.316.1" }, "devDependencies": { "chrome-launcher": "^0.10.5" - } + }, + "snyk": true }