From b9a8059099dd7be4bfadae5b560e39a5242175cb Mon Sep 17 00:00:00 2001 From: curben Date: Mon, 24 Sep 2018 08:27:53 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 - https://snyk.io/vuln/npm:tunnel-agent:20170305 --- .snyk | 27 +++++++++++++++++++++++++++ package.json | 10 ++++++++-- 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..e389101 --- /dev/null +++ b/.snyk @@ -0,0 +1,27 @@ +# 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:lodash:20180130': + - hexo-autonofollow > cheerio > lodash: + patched: '2018-09-24T08:27:51.828Z' + 'npm:tunnel-agent:20170305': + - hexo-all-minifier > imagemin-gifsicle > gifsicle > bin-build > download > caw > tunnel-agent: + patched: '2018-09-24T08:27:51.828Z' + - hexo-all-minifier > imagemin-jpegtran > jpegtran-bin > bin-build > download > caw > tunnel-agent: + patched: '2018-09-24T08:27:51.828Z' + - hexo-all-minifier > imagemin-mozjpeg > mozjpeg > bin-build > download > caw > tunnel-agent: + patched: '2018-09-24T08:27:51.828Z' + - hexo-all-minifier > imagemin-optipng > optipng-bin > bin-build > download > caw > tunnel-agent: + patched: '2018-09-24T08:27:51.828Z' + - hexo-all-minifier > imagemin-gifsicle > gifsicle > bin-wrapper > download > caw > tunnel-agent: + patched: '2018-09-24T08:27:51.828Z' + - hexo-all-minifier > imagemin-jpegtran > jpegtran-bin > bin-wrapper > download > caw > tunnel-agent: + patched: '2018-09-24T08:27:51.828Z' + - hexo-all-minifier > imagemin-mozjpeg > mozjpeg > bin-wrapper > download > caw > tunnel-agent: + patched: '2018-09-24T08:27:51.828Z' + - hexo-all-minifier > imagemin-optipng > optipng-bin > bin-wrapper > download > caw > tunnel-agent: + patched: '2018-09-24T08:27:51.828Z' + - hexo-all-minifier > imagemin-pngquant > pngquant-bin > bin-wrapper > download > caw > tunnel-agent: + patched: '2018-09-24T08:27:51.828Z' diff --git a/package.json b/package.json index 3aa3c4b..f40cba4 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,12 @@ "hexo-renderer-ejs": "latest", "hexo-renderer-stylus": "latest", "hexo-renderer-marked": "latest", - "hexo-server": "latest" - } + "hexo-server": "latest", + "snyk": "^1.97.1" + }, + "scripts": { + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" + }, + "snyk": true } \ No newline at end of file