diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..9946d13 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - request-promise-native > request-promise-core > lodash: + patched: '2019-07-04T03:52:58.214Z' diff --git a/package.json b/package.json index dc4bb2a..2b51dd9 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,17 @@ "description": "AWS Lambda function to watch a zabbix server to provide an off-site status overview of zabbix and its monitored hosts.", "main": "index.js", "scripts": { - "test": "mocha" + "test": "mocha", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "Michiel Hendriks", "license": "Apache-2.0", "dependencies": { "aws-sdk": "^2.390.0", "request": "^2.88.0", - "request-promise-native": "^1.0.5" - } + "request-promise-native": "^1.0.5", + "snyk": "^1.189.0" + }, + "snyk": true }