diff --git a/functions/log/.snyk b/functions/log/.snyk new file mode 100644 index 0000000000..5c33e594c9 --- /dev/null +++ b/functions/log/.snyk @@ -0,0 +1,26 @@ +# 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/logging > async > lodash': + patched: '2020-04-30T22:19:18.514Z' + - '@google-cloud/monitoring > google-gax > lodash': + patched: '2020-04-30T22:19:18.514Z' + - '@google-cloud/logging > @google-cloud/common-grpc > grpc > lodash': + patched: '2020-04-30T22:19:18.514Z' + - '@google-cloud/monitoring > google-gax > grpc > lodash': + patched: '2020-04-30T22:19:18.514Z' + - '@google-cloud/logging > @google-cloud/common > google-auto-auth > async > lodash': + patched: '2020-04-30T22:19:18.514Z' + - '@google-cloud/monitoring > google-gax > google-auto-auth > async > lodash': + patched: '2020-04-30T22:19:18.514Z' + - '@google-cloud/logging > @google-cloud/common-grpc > @google-cloud/common > google-auto-auth > async > lodash': + patched: '2020-04-30T22:19:18.514Z' + - '@google-cloud/logging > @google-cloud/common > google-auto-auth > google-auth-library > request > form-data > async > lodash': + patched: '2020-04-30T22:19:18.514Z' + - '@google-cloud/monitoring > google-gax > google-auto-auth > google-auth-library > request > form-data > async > lodash': + patched: '2020-04-30T22:19:18.514Z' + - '@google-cloud/logging > @google-cloud/common-grpc > @google-cloud/common > google-auto-auth > google-auth-library > request > form-data > async > lodash': + patched: '2020-04-30T22:19:18.514Z' diff --git a/functions/log/package.json b/functions/log/package.json index 10cb9bda24..b783cf499c 100644 --- a/functions/log/package.json +++ b/functions/log/package.json @@ -6,10 +6,14 @@ "author": "Google Inc.", "main": "./index.js", "scripts": { - "test": "cd ../..; npm run t -- functions/log/test/*.test.js" + "test": "cd ../..; npm run t -- functions/log/test/*.test.js", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "dependencies": { "@google-cloud/logging": "0.7.0", - "@google-cloud/monitoring": "0.1.4" - } + "@google-cloud/monitoring": "0.1.4", + "snyk": "^1.316.1" + }, + "snyk": true }