diff --git a/functions/sendgrid/.snyk b/functions/sendgrid/.snyk new file mode 100644 index 0000000000..dcdcd27635 --- /dev/null +++ b/functions/sendgrid/.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: + - '@google-cloud/storage > async > lodash': + patched: '2020-05-01T01:31:24.053Z' + - '@google-cloud/storage > @google-cloud/common > google-auto-auth > async > lodash': + patched: '2020-05-01T01:31:24.053Z' + - '@google-cloud/storage > @google-cloud/common > google-auto-auth > google-auth-library > request > form-data > async > lodash': + patched: '2020-05-01T01:31:24.053Z' + - '@google-cloud/storage > gcs-resumable-upload > google-auto-auth > google-auth-library > request > form-data > async > lodash': + patched: '2020-05-01T01:31:24.053Z' diff --git a/functions/sendgrid/package.json b/functions/sendgrid/package.json index 4e06ce29cc..5b05ec7e96 100644 --- a/functions/sendgrid/package.json +++ b/functions/sendgrid/package.json @@ -6,12 +6,16 @@ "author": "Google Inc.", "main": "./index.js", "scripts": { - "test": "cd ../..; npm run t -- functions/sendgrid/test/*.test.js" + "test": "cd ../..; npm run t -- functions/sendgrid/test/*.test.js", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "dependencies": { "@google-cloud/storage": "0.7.0", "@google-cloud/bigquery": "0.7.0", "uuid": "3.0.1", - "sendgrid": "4.7.1" - } + "sendgrid": "4.7.1", + "snyk": "^1.316.1" + }, + "snyk": true }