From a4c8f8769b037570357d56f334934a8010820867 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 08:40:01 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- .snyk | 10 ++++++++-- package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.snyk b/.snyk index ccc04e1..948052f 100644 --- a/.snyk +++ b/.snyk @@ -1,9 +1,15 @@ # Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. -version: v1.11.0 +version: v1.13.5 # ignores vulnerabilities until expiry date; change duration by modifying expiry date ignore: 'npm:lodash:20180130': - caporal > cli-table2 > lodash: reason: wontfix expires: '2019-06-01T21:27:41.071Z' -patch: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - '@octokit/rest > lodash': + patched: '2019-07-04T08:39:59.168Z' + - caporal > tabtab > inquirer > lodash: + patched: '2019-07-04T08:39:59.168Z' diff --git a/package.json b/package.json index b00ac6b..7dfb35e 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,9 @@ "ghu": "./index.js" }, "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -28,10 +30,12 @@ "homepage": "https://github.com/pandoraboxchain/github-utils#readme", "dependencies": { "@octokit/rest": "^15.6.1", - "caporal": "^0.10.0" + "caporal": "^0.10.0", + "snyk": "^1.190.0" }, "devDependencies": { "eslint": "^4.19.1" }, - "license": "MIT" + "license": "MIT", + "snyk": true }