diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..1f7cf36 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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-01T03:25:58.808Z' + - nodegit > lodash: + patched: '2020-05-01T03:25:58.808Z' + - react-redux > lodash: + patched: '2020-05-01T03:25:58.808Z' diff --git a/package.json b/package.json index ca91570..9942c50 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "scripts": { "start": "electron dist/", "build": "webpack", - "lint-ts": "tslint --project tsconfig.json" + "lint-ts": "tslint --project tsconfig.json", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "devDependencies": { "@types/electron": "1.6.10", @@ -42,6 +44,8 @@ "react-redux": "5.0.7", "redux": "4.0.0", "redux-thunk": "2.3.0", - "url-join": "4.0.0" - } + "url-join": "4.0.0", + "snyk": "^1.316.1" + }, + "snyk": true }