diff --git a/.snyk b/.snyk new file mode 100644 index 00000000000..ea65d84ac53 --- /dev/null +++ b/.snyk @@ -0,0 +1,16 @@ +# 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: + - lodash: + patched: '2020-05-06T00:40:02.475Z' + - swagger-client > lodash: + patched: '2020-05-06T00:40:02.475Z' + - react-redux > lodash: + patched: '2020-05-06T00:40:02.475Z' + - redux > lodash: + patched: '2020-05-06T00:40:02.475Z' + - swagger-client > isomorphic-form-data > form-data > async > lodash: + patched: '2020-05-06T00:40:02.475Z' diff --git a/package.json b/package.json index 0d36e669a29..cdc52db40b2 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,9 @@ "test": "npm run lint-errors && npm run just-test-in-node", "test-in-node": "npm run lint-errors && npm run just-test-in-node", "just-test": "karma start --config karma.conf.js", - "just-test-in-node": "mocha --recursive --compilers js:babel-core/register test/core test/components test/bugs test/swagger-ui-dist-package" + "just-test-in-node": "mocha --recursive --compilers js:babel-core/register test/core test/components test/bugs test/swagger-ui-dist-package", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "base64-js": "^1.2.0", @@ -74,7 +76,8 @@ "whatwg-fetch": "0.11.1", "worker-loader": "^0.7.1", "xml": "1.0.1", - "yaml-js": "0.2.0" + "yaml-js": "0.2.0", + "snyk": "^1.319.0" }, "devDependencies": { "autoprefixer": "6.6.1", @@ -136,5 +139,6 @@ ], "optionalDependencies": { "webpack-dev-server": "1.14.0" - } + }, + "snyk": true }