From 8132dc4240cd7cced8ebfbd79ec16db73a036ca1 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 26 Jun 2018 05:14:28 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:tunnel-agent:20170305 --- .snyk | 8 ++++++++ package.json | 20 ++++++++++++-------- 2 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..1a9ae49 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:tunnel-agent:20170305': + - travis-ci > request > tunnel-agent: + patched: '2018-06-26T05:14:27.298Z' diff --git a/package.json b/package.json index 4c30312..eb3d485 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "chalk": "^1.0.0", "prompt": "^1.0.0", "travis-ci": "^2.1.1", - "which": "^1.0.8" + "which": "^1.0.8", + "snyk": "^1.85.0" }, "devDependencies": { "eslint": "^3.19.0", @@ -26,7 +27,9 @@ "scripts": { "pretest": "eslint --fix .", "test": "jenkins-mocha ./tests/", - "posttest": "nyc check-coverage; nyc report" + "posttest": "nyc check-coverage; nyc report", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "preferGlobal": "true", "bugs": { @@ -38,10 +41,11 @@ "url": "http://github.com/davglass/git-travis.git" }, "nyc": { - "check-coverage": true, - "statements": 83, - "lines": 80, - "branches": 65, - "functions": 88 - } + "check-coverage": true, + "statements": 83, + "lines": 80, + "branches": 65, + "functions": 88 + }, + "snyk": true }