diff --git a/functions/background/.snyk b/functions/background/.snyk new file mode 100644 index 0000000000..d0f92afbc9 --- /dev/null +++ b/functions/background/.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: + - request-promise-native > request-promise-core > lodash: + patched: '2020-05-01T02:00:22.973Z' diff --git a/functions/background/package.json b/functions/background/package.json index 7b65efa710..6fae71a6ed 100644 --- a/functions/background/package.json +++ b/functions/background/package.json @@ -12,11 +12,14 @@ "node": ">=8" }, "scripts": { - "test": "ava -T 20s --verbose test/*.test.js" + "test": "ava -T 20s --verbose test/*.test.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "request": "2.88.0", - "request-promise-native": "^1.0.5" + "request-promise-native": "^1.0.5", + "snyk": "^1.316.1" }, "devDependencies": { "@google-cloud/nodejs-repo-tools": "^3.0.0", @@ -27,5 +30,6 @@ "cloud-repo-tools": { "requiresKeyFile": true, "requiresProjectId": true - } + }, + "snyk": true }