diff --git a/functions/firebase/.snyk b/functions/firebase/.snyk new file mode 100644 index 0000000000..a19d330400 --- /dev/null +++ b/functions/firebase/.snyk @@ -0,0 +1,8 @@ +# 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: + - '@google-cloud/firestore > google-gax > @grpc/proto-loader > lodash': + patched: '2020-04-30T21:50:27.727Z' diff --git a/functions/firebase/package.json b/functions/firebase/package.json index 7bc503352c..f7468134e5 100644 --- a/functions/firebase/package.json +++ b/functions/firebase/package.json @@ -12,7 +12,9 @@ "node": ">=8" }, "scripts": { - "test": "ava -T 30s test/*.test.js" + "test": "ava -T 30s test/*.test.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "devDependencies": { "@google-cloud/nodejs-repo-tools": "^3.0.0", @@ -23,6 +25,8 @@ "uuid": "^3.1.0" }, "dependencies": { - "@google-cloud/firestore": "^0.19.0" - } + "@google-cloud/firestore": "^0.19.0", + "snyk": "^1.316.1" + }, + "snyk": true }