diff --git a/functions/node8/.snyk b/functions/node8/.snyk new file mode 100644 index 0000000000..0c0218915e --- /dev/null +++ b/functions/node8/.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-05-01T08:53:16.936Z' diff --git a/functions/node8/package.json b/functions/node8/package.json index dbeff376d5..7a951cafa4 100644 --- a/functions/node8/package.json +++ b/functions/node8/package.json @@ -3,7 +3,9 @@ "version": "0.0.1", "description": "Google Cloud Functions samples for Node.js 8", "scripts": { - "test": "ava test/*" + "test": "ava test/*", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "engines": { "node": ">=8" @@ -27,6 +29,8 @@ "dependencies": { "@google-cloud/firestore": "^0.19.0", "escape-html": "^1.0.3", - "node-fetch": "^2.3.0" - } + "node-fetch": "^2.3.0", + "snyk": "^1.316.1" + }, + "snyk": true }