diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..ac108e1 --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - asyncawait > lodash: + patched: '2020-05-01T04:10:34.687Z' + - grunt > grunt-legacy-log > lodash: + patched: '2020-05-01T04:10:34.687Z' + - grunt > grunt-legacy-util > lodash: + patched: '2020-05-01T04:10:34.687Z' + - grunt > grunt-legacy-log > grunt-legacy-log-utils > lodash: + patched: '2020-05-01T04:10:34.687Z' diff --git a/package.json b/package.json index d6a719c..57ab21f 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "main": "index.js", "scripts": { "start": "node index.js", - "test": "make test-coveralls" + "test": "make test-coveralls", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -36,7 +38,8 @@ "passport-google-oauth2": "^0.1.6", "passport-openidconnect": "git+https://github.com/fiddur/passport-openidconnect.git", "q": "^1.4.1", - "request-promise": "^0.4.3" + "request-promise": "^0.4.3", + "snyk": "^1.316.1" }, "optionalDependencies": { "sqlite3": "3" @@ -50,5 +53,6 @@ "supertest": "^0.15.0" }, "author": "Fredrik Liljegren", - "license": "AGPL-3.0" + "license": "AGPL-3.0", + "snyk": true }