From 1e67434ab25906dff45203b8884a46f82b0ad7c7 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 6 May 2020 00:08:59 +0100 Subject: [PATCH 1/2] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- package.json | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 2931f80..afc305f 100644 --- a/package.json +++ b/package.json @@ -5,11 +5,13 @@ "main": "./lib/index", "author": "david_taieb@us.ibm.com", "scripts": { - "test": "NODE_CONFIG=tests/config/configYP ./node_modules/.bin/mocha ./tests" + "test": "NODE_CONFIG=tests/config/configYP ./node_modules/.bin/mocha ./tests", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { - "type" : "git", - "url": "git+https://github.com/ibm-cds-labs/nodejs-dataworks.git" + "type": "git", + "url": "git+https://github.com/ibm-cds-labs/nodejs-dataworks.git" }, "keywords": [ "dataworks", @@ -17,14 +19,16 @@ "data movement" ], "dependencies": { - "bluemix-helper-config": "*", - "request": "~2.58.0", - "http-proxy": "~1.11.1", - "lodash": "~3.9.3" + "bluemix-helper-config": "*", + "request": "~2.58.0", + "http-proxy": "~1.11.1", + "lodash": "~3.9.3", + "snyk": "^1.319.0" }, "devDependencies": { "mocha": "*" }, "license": "Apache-2.0", - "readmeFilename": "README.md" + "readmeFilename": "README.md", + "snyk": true } From 1babc7f75ad2dfa16d8f1316ec78af050233c7bd Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 6 May 2020 00:09:01 +0100 Subject: [PATCH 2/2] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..2a29141 --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# 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: + - bluemix-helper-config > async > lodash: + patched: '2020-05-05T23:08:49.845Z' + - bluemix-helper-config > bunyan-console-stream > lodash: + patched: '2020-05-05T23:08:49.845Z' + - bluemix-helper-config > cloudant > async > lodash: + patched: '2020-05-05T23:08:49.845Z' + - request > form-data > async > lodash: + patched: '2020-05-05T23:08:49.845Z'