diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..4802d4c --- /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: + - node-cache > lodash: + patched: '2019-07-04T01:31:33.616Z' + - epfl-ldap > node-cache > lodash: + patched: '2019-07-04T01:31:33.616Z' + - pug > pug-code-gen > constantinople > babel-types > lodash: + patched: '2019-07-04T01:31:33.616Z' + - pug > pug-filters > constantinople > babel-types > lodash: + patched: '2019-07-04T01:31:33.616Z' + - pug > pug-code-gen > pug-attrs > constantinople > babel-types > lodash: + patched: '2019-07-04T01:31:33.616Z' diff --git a/package.json b/package.json index 57041be..f76bbc8 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,8 @@ "passport-tequila": "^0.1.9", "pug": "^0.1.0", "serve-favicon": "^2.3.0", - "underscore": "^1.8.3" + "underscore": "^1.8.3", + "snyk": "^1.189.0" }, "devDependencies": { "grunt": "^0.4.5", @@ -38,7 +39,9 @@ "scripts": { "test": "mocha", "start": "node server.js", - "SayHello": "echo \"Pre Commit Says Hello !\" && exit 0" + "SayHello": "echo \"Pre Commit Says Hello !\" && exit 0", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "bugs": { "url": "https://github.com/stefanonepa/epfl-api/issues" @@ -63,5 +66,6 @@ "apidoc": { "title": "API EPFL-LDAP", "url": "https://localhost:3000" - } + }, + "snyk": true } \ No newline at end of file