diff --git a/.snyk b/.snyk new file mode 100644 index 000000000..fcdbd1ddd --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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: + - lodash: + patched: '2019-07-04T05:59:02.007Z' + - request-promise-native > request-promise-core > lodash: + patched: '2019-07-04T05:59:02.007Z' diff --git a/package.json b/package.json index 2253e0eff..2c05d01d3 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,9 @@ "test-server": "grunt test-server", "e2e": "grunt e2e", "build": "grunt buildprod", - "postinstall": "git config --global url.https://.insteadOf git:// && bower install --config.interactive=false --allow-root && grunt buildprod" + "postinstall": "git config --global url.https://.insteadOf git:// && bower install --config.interactive=false --allow-root && grunt buildprod", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "acl": "0.4.11", @@ -68,7 +70,8 @@ "tiny-jsonrpc": "2.0.1", "tree-model": "1.0.7", "uid-safe": "2.1.5", - "validator": "9.4.1" + "validator": "9.4.1", + "snyk": "^1.189.0" }, "devDependencies": { "babel-core": "6.26.3", @@ -109,5 +112,6 @@ "run-sequence": "2.2.1", "should": "13.2.1", "supertest": "3.1.0" - } + }, + "snyk": true }