diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..47c41dde --- /dev/null +++ b/.snyk @@ -0,0 +1,16 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - async > lodash: + patched: '2019-07-04T08:40:22.349Z' + - mongoose > async > lodash: + patched: '2019-07-04T08:40:22.349Z' + - pug > pug-code-gen > constantinople > babel-types > lodash: + patched: '2019-07-04T08:40:22.349Z' + - pug > pug-filters > constantinople > babel-types > lodash: + patched: '2019-07-04T08:40:22.349Z' + - pug > pug-code-gen > pug-attrs > constantinople > babel-types > lodash: + patched: '2019-07-04T08:40:22.349Z' diff --git a/package.json b/package.json index eb9e8dcc..20d0d14e 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,8 @@ "redis": "2.6.2", "trim": "0.0.1", "winston": "2.2.0", - "winston-mail": "1.3.0" + "winston-mail": "1.3.0", + "snyk": "^1.190.0" }, "devDependencies": { "@linagora/grunt-lint-pattern": "0.1.4", @@ -118,8 +119,11 @@ }, "scripts": { "postinstall": "./node_modules/bower/bin/bower install --allow-root", - "test": "grunt test --chunk=1" + "test": "grunt test --chunk=1", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "Linagora Folks", - "license": "AGPLv3" + "license": "AGPLv3", + "snyk": true }