diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..4895517 --- /dev/null +++ b/.snyk @@ -0,0 +1,16 @@ +# 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: + - serverless-python-requirements > archiver > lodash: + patched: '2019-07-03T23:50:35.008Z' + - serverless-python-requirements > archiver > archiver-utils > lodash: + patched: '2019-07-03T23:50:35.008Z' + - serverless-python-requirements > archiver > async > lodash: + patched: '2019-07-03T23:50:35.008Z' + - serverless-python-requirements > archiver > zip-stream > lodash: + patched: '2019-07-03T23:50:35.008Z' + - serverless-python-requirements > archiver > zip-stream > archiver-utils > lodash: + patched: '2019-07-03T23:50:35.008Z' diff --git a/package.json b/package.json index e0114cf..954c2b8 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,9 @@ "version": "1.0.0", "description": "Tools for generating metadata spreadsheets", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -19,9 +21,11 @@ "aws-sdk": "^2.188.0", "serverless-apigw-binary": "^0.4.4", "serverless-pseudo-parameters": "^1.2.5", - "serverless-python-requirements": "^3.0.9" + "serverless-python-requirements": "^3.0.9", + "snyk": "^1.189.0" }, "devDependencies": { "serverless": "^1.26.0" - } + }, + "snyk": true }