diff --git a/.snyk b/.snyk new file mode 100644 index 0000000000..ccb3f21f0a --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:http-signature:20150122': + - tap > codecov.io > request > http-signature: + patched: '2019-12-16T20:49:17.369Z' diff --git a/package.json b/package.json index a63eeb5e30..d6b8d00aea 100644 --- a/package.json +++ b/package.json @@ -10,14 +10,16 @@ "scripts": { "start": "node app.js", "build": "browserify -r jquery > public/js/bundle.js", - "cleanup": "mongo express-todo --eval 'db.todos.remove({});'" + "cleanup": "mongo express-todo --eval 'db.todos.remove({});'", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "engines": { "node": "6.14.1" }, "dependencies": { "@snyk/nodejs-runtime-agent": "^1.31.0", - "adm-zip": "0.4.7", + "adm-zip": "0.4.11", "body-parser": "1.9.0", "cfenv": "^1.0.4", "consolidate": "0.14.5", @@ -43,9 +45,11 @@ "optional": "^0.1.3", "st": "0.2.4", "stream-buffers": "^3.0.1", - "tap": "^5.7.0" + "tap": "^11.1.3", + "snyk": "^1.261.0" }, "devDependencies": { "browserify": "^13.1.1" - } + }, + "snyk": true }