From c5859aeb4f464768c166c64c99d015564cd6416d Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 19 Jun 2018 05:14:16 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:hoek:20180212 Latest report for davglass/git-travis: https://snyk.io/test/github/davglass/git-travis --- .snyk | 14 ++++++++++++++ package.json | 20 ++++++++++++-------- 2 files changed, 26 insertions(+), 8 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..0ee0aa5 --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# 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:hoek:20180212': + - travis-ci > request > hawk > hoek: + patched: '2018-06-19T05:14:16.194Z' + - travis-ci > request > hawk > boom > hoek: + patched: '2018-06-19T05:14:16.194Z' + - travis-ci > request > hawk > sntp > hoek: + patched: '2018-06-19T05:14:16.194Z' + - travis-ci > request > hawk > cryptiles > boom > hoek: + patched: '2018-06-19T05:14:16.194Z' diff --git a/package.json b/package.json index 4c30312..6ad24ac 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.83.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", + "prepublish": "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 }