From ea32c33e35023eb50a67b082e6ff1e7ee9140f04 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 27 Jun 2018 02:36:58 +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 | 20 ++++++++++++++++++++ package.json | 10 +++++++--- 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..eee0ed2 --- /dev/null +++ b/.snyk @@ -0,0 +1,20 @@ +# 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': + - gulp-sass > node-sass > request > tunnel-agent: + patched: '2018-06-27T02:36:56.569Z' + - gulp-imagemin > imagemin-gifsicle > gifsicle > bin-build > download > caw > tunnel-agent: + patched: '2018-06-27T02:36:56.569Z' + - gulp-imagemin > imagemin-gifsicle > gifsicle > bin-wrapper > download > caw > tunnel-agent: + patched: '2018-06-27T02:36:56.569Z' + - gulp-imagemin > imagemin-jpegtran > jpegtran-bin > bin-build > download > caw > tunnel-agent: + patched: '2018-06-27T02:36:56.569Z' + - gulp-imagemin > imagemin-jpegtran > jpegtran-bin > bin-wrapper > download > caw > tunnel-agent: + patched: '2018-06-27T02:36:56.569Z' + - gulp-imagemin > imagemin-optipng > optipng-bin > bin-build > download > caw > tunnel-agent: + patched: '2018-06-27T02:36:56.569Z' + - gulp-imagemin > imagemin-optipng > optipng-bin > bin-wrapper > download > caw > tunnel-agent: + patched: '2018-06-27T02:36:56.569Z' diff --git a/package.json b/package.json index 0fe407a..90ac458 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,9 @@ }, "scripts": { "lint": "gulp eslint stylelint", - "prepush-msg": "echo 'Running lint task...' && exit 0" + "prepush-msg": "echo 'Running lint task...' && exit 0", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "pre-push": [ "prepush-msg", @@ -90,6 +92,8 @@ "vinyl-buffer": "^1.0.0", "vinyl-source-stream": "^1.1.0", "watchify": "^3.9.0", - "yargs": "^8.0.2" - } + "yargs": "^8.0.2", + "snyk": "^1.85.0" + }, + "snyk": true }