From c55d4ae62ee7a2a1d66ff96322355f9d3a497e4a Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 4 Oct 2019 02:25:54 +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/SNYK-JS-HTTPSPROXYAGENT-469131 --- deps/npm/.snyk | 16 ++++++++++++++++ deps/npm/package.json | 11 +++++++---- 2 files changed, 23 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..d503f8c8dc32ca --- /dev/null +++ b/deps/npm/.snyk @@ -0,0 +1,16 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-HTTPSPROXYAGENT-469131: + - pacote > make-fetch-happen > https-proxy-agent: + patched: '2019-10-04T02:25:52.273Z' + - npm-profile > make-fetch-happen > https-proxy-agent: + patched: '2019-10-04T02:25:52.273Z' + - npm-registry-fetch > make-fetch-happen > https-proxy-agent: + patched: '2019-10-04T02:25:52.273Z' + - libcipm > pacote > make-fetch-happen > https-proxy-agent: + patched: '2019-10-04T02:25:52.273Z' + - libnpmhook > npm-registry-fetch > make-fetch-happen > https-proxy-agent: + patched: '2019-10-04T02:25:52.273Z' diff --git a/deps/npm/package.json b/deps/npm/package.json index 5c79d1566c3517..f62752b00486b5 100644 --- a/deps/npm/package.json +++ b/deps/npm/package.json @@ -141,7 +141,8 @@ "validate-npm-package-name": "~3.0.0", "which": "^1.3.1", "worker-farm": "^1.6.0", - "write-file-atomic": "^2.3.0" + "write-file-atomic": "^2.3.0", + "snyk": "^1.230.5" }, "bundleDependencies": [ "abbrev", @@ -277,14 +278,16 @@ }, "scripts": { "dumpconf": "env | grep npm | sort | uniq", - "prepare": "node bin/npm-cli.js --no-audit --no-timing prune --prefix=. --no-global && rimraf test/*/*/node_modules && make -j4 doc", + "prepare": "npm run snyk-protect && node bin/npm-cli.js --no-audit --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 --reporter=classic --timeout 300", "tap-cover": "tap --reporter=classic --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 }