diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..271e0cd --- /dev/null +++ b/.snyk @@ -0,0 +1,28 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:debug:20170905': + - hubot > express > connect > debug: + patched: '2017-10-02T02:08:05.708Z' + - hubot > express > debug: + patched: '2017-10-02T02:08:05.708Z' + - hubot > express > connect > body-parser > debug: + patched: '2017-10-02T02:08:05.708Z' + - hubot > express > connect > compression > debug: + patched: '2017-10-02T02:08:05.708Z' + - hubot > express > connect > connect-timeout > debug: + patched: '2017-10-02T02:08:05.708Z' + - hubot > express > send > debug: + patched: '2017-10-02T02:08:05.708Z' + - hubot > express > connect > express-session > debug: + patched: '2017-10-02T02:08:05.708Z' + - hubot > express > connect > finalhandler > debug: + patched: '2017-10-02T02:08:05.708Z' + - hubot > express > connect > morgan > debug: + patched: '2017-10-02T02:08:05.708Z' + - hubot > express > connect > serve-index > debug: + patched: '2017-10-02T02:08:05.708Z' + - hubot > express > connect > serve-static > send > debug: + patched: '2017-10-02T02:08:05.708Z' diff --git a/package.json b/package.json index 01d3188..6826284 100644 --- a/package.json +++ b/package.json @@ -8,13 +8,15 @@ "test-unit": "mocha --compilers coffee:coffee-script/register test", "test-integration": "cd dummy && npm i && npm run test", "semantic-release": "semantic-release pre && npm publish && semantic-release post", - "prepublish": "coffee --compile --output lib/ src/" + "prepublish": "npm run snyk-protect; coffee --compile --output lib/ src/", + "snyk-protect": "snyk protect" }, "keywords": [ "hubot" ], "dependencies": { - "hubot": ">= 2.6.0 < 3" + "hubot": ">= 2.6.0 < 3", + "snyk": "^1.41.1" }, "devDependencies": { "chai": "latest", @@ -28,5 +30,6 @@ "repository": { "type": "git", "url": "https://github.com/mtsmfm/hubot-test-helper" - } + }, + "snyk": true }