diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..dfc0a06 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.8.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:marked:20170907': + - '@storybook/react > markdown-loader > marked': + patched: '2017-11-22T12:41:10.662Z' diff --git a/package.json b/package.json index 2708724..3530cfd 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,9 @@ "webpack": "webpack --config webpack.config.js --progress --colors", "storybook": "start-storybook -p 6006", "build-storybook": "build-storybook", - "test": "yarn run relay && yarn run eslint && flow && jest" + "test": "yarn run relay && yarn run eslint && flow && jest", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "@storybook/addon-actions": "^3.2.16", @@ -78,7 +80,8 @@ "url-loader": "^0.6.2", "webpack": "^3.8.1", "webpack-bundle-tracker": "^0.2.0", - "whatwg-fetch": "^2.0.3" + "whatwg-fetch": "^2.0.3", + "snyk": "^1.49.4" }, "devDependencies": { "eslint-config-airbnb": "^16.1.0", @@ -109,5 +112,6 @@ "/.storybook/raf.js", "/.storybook/jest-setup.js" ] - } + }, + "snyk": true }