diff --git a/packages/react-devtools/.snyk b/packages/react-devtools/.snyk new file mode 100644 index 0000000000000..34168711d4a74 --- /dev/null +++ b/packages/react-devtools/.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: + - electron > @electron/get > global-tunnel-ng > lodash: + patched: '2024-08-10T22:32:12.706Z' + id: SNYK-JS-LODASH-567746 + path: electron > @electron/get > global-tunnel-ng > lodash diff --git a/packages/react-devtools/package.json b/packages/react-devtools/package.json index d866ead7dc5a5..1c202a3c0579b 100644 --- a/packages/react-devtools/package.json +++ b/packages/react-devtools/package.json @@ -19,14 +19,18 @@ "icons" ], "scripts": { - "start": "node bin.js" + "start": "node bin.js", + "prepare": "yarn run snyk-protect", + "snyk-protect": "snyk-protect" }, "dependencies": { "cross-spawn": "^5.0.1", - "electron": "^11.1.0", + "electron": "^26.6.7", "ip": "^1.1.4", "minimist": "^1.2.3", "react-devtools-core": "4.27.1", - "update-notifier": "^2.1.0" - } + "update-notifier": "^2.1.0", + "@snyk/protect": "latest" + }, + "snyk": true }