From 061c652e8ce99da78a89a7a89e2353c99ba541a9 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 17 Apr 2023 02:36:31 +0000 Subject: [PATCH] fix: deps/npm/package.json & deps/npm/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 --- deps/npm/.snyk | 8 ++++++++ deps/npm/package.json | 11 +++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 deps/npm/.snyk diff --git a/deps/npm/.snyk b/deps/npm/.snyk new file mode 100644 index 00000000000000..14c7c01a7b0479 --- /dev/null +++ b/deps/npm/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - cli-table2 > lodash: + patched: '2023-04-17T02:36:29.993Z' diff --git a/deps/npm/package.json b/deps/npm/package.json index 71443a9ee2c40d..0490dcfbc628c4 100644 --- a/deps/npm/package.json +++ b/deps/npm/package.json @@ -126,7 +126,8 @@ "which": "~1.3.0", "worker-farm": "~1.5.0", "wrappy": "~1.0.2", - "write-file-atomic": "~2.1.0" + "write-file-atomic": "~2.1.0", + "@snyk/protect": "latest" }, "bundleDependencies": [ "abbrev", @@ -248,14 +249,16 @@ }, "scripts": { "dumpconf": "env | grep npm | sort | uniq", - "prepare": "node bin/npm-cli.js --no-timing prune --prefix=. --no-global && rimraf test/*/*/node_modules && make -j4 doc", + "prepare": "npm run snyk-protect && node bin/npm-cli.js --no-timing prune --prefix=. --no-global && rimraf test/*/*/node_modules && make -j4 doc", "preversion": "bash scripts/update-authors.sh && git add AUTHORS && git commit -m \"update AUTHORS\" || true", "tap": "tap --timeout 300", "tap-cover": "tap --nyc-arg='--cache' --coverage --timeout 600", "test": "standard && npm run test-tap", "test-coverage": "npm run tap-cover -- \"test/tap/*.js\" \"test/network/*.js\" \"test/broken-under-*/*.js\"", "test-tap": "npm run tap -- \"test/tap/*.js\" \"test/network/*.js\" \"test/broken-under-*/*.js\"", - "test-node": "tap --timeout 240 \"test/tap/*.js\" \"test/network/*.js\" \"test/broken-under-nyc*/*.js\"" + "test-node": "tap --timeout 240 \"test/tap/*.js\" \"test/network/*.js\" \"test/broken-under-nyc*/*.js\"", + "snyk-protect": "snyk-protect" }, - "license": "Artistic-2.0" + "license": "Artistic-2.0", + "snyk": true }