diff --git a/.snyk b/.snyk new file mode 100644 index 0000000000..ecadd53757 --- /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: + - xmlbuilder > lodash: + patched: '2020-05-01T03:55:24.286Z' + - xml2js > xmlbuilder > lodash: + patched: '2020-05-01T03:55:24.286Z' diff --git a/package.json b/package.json index 14120db879..35e3a40c91 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,8 @@ "url": "0.10.3", "uuid": "3.0.1", "xml2js": "0.4.17", - "xmlbuilder": "4.2.1" + "xmlbuilder": "4.2.1", + "snyk": "^1.316.1" }, "main": "lib/aws.js", "browser": { @@ -130,6 +131,9 @@ "tstest": "tsc -p ./ts", "add-change": "node ./scripts/changelog/add-change.js", "build-react-native": "webpack --config dist-tools/webpack.config.rn.js", - "react-native-test": "npm -s run-script build-react-native && rake reactnative:test && karma start" - } + "react-native-test": "npm -s run-script build-react-native && rake reactnative:test && karma start", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true } \ No newline at end of file