diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..c2a4eff3 --- /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: + - lodash: + patched: '2020-05-01T04:06:03.958Z' + - react-router-relay > lodash: + patched: '2020-05-01T04:06:03.958Z' diff --git a/package.json b/package.json index 7e76b61f..d5711f4e 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,9 @@ "lint:staged": "lint-staged", "test": "NODE_ENV=test jest", "test:watch": "NODE_ENV=test jest --watch", - "test:coverage": "npm test -- --coverage --collectCoverageFrom 'app/**/*.js' --collectCoverageFrom 'graphql/**/*.js'" + "test:coverage": "npm test -- --coverage --collectCoverageFrom 'app/**/*.js' --collectCoverageFrom 'graphql/**/*.js'", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "lint-staged": { "lint:eslint": "*.js", @@ -46,7 +48,8 @@ "react-router-relay": "^0.13.5", "recompose": "^0.20.2", "sanitize.css": "^4.1.0", - "whatwg-fetch": "^1.0.0" + "whatwg-fetch": "^1.0.0", + "snyk": "^1.316.1" }, "devDependencies": { "aws-sdk": "^2.4.8", @@ -103,5 +106,6 @@ "^.+\\.(jpg|png|gif|eot|svg|ttf|woff|woff2|mp4|webm)$": "/foundation/jest/fileMock.js", "^.+\\.css$": "/foundation/jest/cssMock.js" } - } + }, + "snyk": true }