diff --git a/functions/datastore/.snyk b/functions/datastore/.snyk new file mode 100644 index 0000000000..f1007f4687 --- /dev/null +++ b/functions/datastore/.snyk @@ -0,0 +1,16 @@ +# 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/datastore > @google-cloud/common-grpc > grpc > lodash': + patched: '2020-04-30T23:36:24.289Z' + - '@google-cloud/datastore > @google-cloud/common > google-auto-auth > async > lodash': + patched: '2020-04-30T23:36:24.289Z' + - '@google-cloud/datastore > @google-cloud/common-grpc > @google-cloud/common > google-auto-auth > async > lodash': + patched: '2020-04-30T23:36:24.289Z' + - '@google-cloud/datastore > @google-cloud/common > google-auto-auth > google-auth-library > request > form-data > async > lodash': + patched: '2020-04-30T23:36:24.289Z' + - '@google-cloud/datastore > @google-cloud/common-grpc > @google-cloud/common > google-auto-auth > google-auth-library > request > form-data > async > lodash': + patched: '2020-04-30T23:36:24.289Z' diff --git a/functions/datastore/package.json b/functions/datastore/package.json index ec0a984aaa..8156caa7cb 100644 --- a/functions/datastore/package.json +++ b/functions/datastore/package.json @@ -6,9 +6,13 @@ "author": "Google Inc.", "main": "./index.js", "scripts": { - "test": "cd ../..; npm run t -- functions/datastore/test/*.test.js" + "test": "cd ../..; npm run t -- functions/datastore/test/*.test.js", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "dependencies": { - "@google-cloud/datastore": "0.7.0" - } + "@google-cloud/datastore": "0.7.0", + "snyk": "^1.316.1" + }, + "snyk": true }