From f19146ce646781ac4a8dc7b120e5a42490a308c1 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 24 May 2023 16:12:17 +0000 Subject: [PATCH] fix: package.json, yarn.lock & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 10 ++++++++++ package.json | 10 +++++++--- yarn.lock | 5 +++++ 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..90a8c83 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - react-scripts > @svgr/webpack > @babel/preset-env > @babel/plugin-proposal-unicode-property-regex > @babel/helper-create-regexp-features-plugin > @babel/helper-regex > lodash: + patched: '2023-05-24T16:11:14.044Z' + - react-scripts > jest > jest-cli > @jest/core > @jest/reporters > jest-runtime > jest-config > jest-environment-jsdom > jsdom > request-promise-native > request-promise-core > lodash: + patched: '2023-05-24T16:11:14.044Z' diff --git a/package.json b/package.json index 122cb79..51d735e 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "react-router-dom": "^5.2.0", "react-scripts": "3.4.1", "redux-thunk": "^2.3.0", - "typescript": "3.9.3" + "typescript": "3.9.3", + "@snyk/protect": "latest" }, "scripts": { "start": "react-scripts start", @@ -31,7 +32,9 @@ "test": "react-scripts test", "eject": "react-scripts eject", "storybook": "start-storybook -p 9009 -s public", - "build-storybook": "build-storybook -s public" + "build-storybook": "build-storybook -s public", + "prepare": "yarn run snyk-protect", + "snyk-protect": "snyk-protect" }, "eslintConfig": { "extends": "react-app" @@ -55,5 +58,6 @@ "@storybook/preset-create-react-app": "^3.0.0", "@storybook/react": "^5.3.19", "cra-build-watch": "^3.2.0" - } + }, + "snyk": true } diff --git a/yarn.lock b/yarn.lock index 9d85adc..36b3d63 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1550,6 +1550,11 @@ resolved "https://registry.yarnpkg.com/@sheerun/mutationobserver-shim/-/mutationobserver-shim-0.3.3.tgz#5405ee8e444ed212db44e79351f0c70a582aae25" integrity sha512-DetpxZw1fzPD5xUBrIAoplLChO2VB8DlL5Gg+I1IR9b2wPqYIca2WSUxL5g1vLeR4MsQq1NeWriXAVffV+U1Fw== +"@snyk/protect@^1.1163.0": + version "1.1163.0" + resolved "https://registry.yarnpkg.com/@snyk/protect/-/protect-1.1163.0.tgz#68ce3764e40aa3b8ef434e0d72f157258637f102" + integrity sha512-pwUwun+dukyPZFgglH7w13laMrtddL306HzxXNDKX9o3j8ay16blAKau/iI/asiL9czAaTbibxbS9KSZSxryng== + "@storybook/addon-actions@^5.3.19": version "5.3.19" resolved "https://registry.yarnpkg.com/@storybook/addon-actions/-/addon-actions-5.3.19.tgz#50548fa6e84bc79ad95233ce23ade4878fc7cfac"