diff --git a/functions/spanner/.snyk b/functions/spanner/.snyk new file mode 100644 index 0000000000..324bf626c6 --- /dev/null +++ b/functions/spanner/.snyk @@ -0,0 +1,12 @@ +# 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/spanner > @google-cloud/common-grpc > @grpc/proto-loader > lodash': + patched: '2020-04-30T23:40:37.008Z' + - '@google-cloud/spanner > google-gax > @grpc/proto-loader > lodash': + patched: '2020-04-30T23:40:37.008Z' + - '@google-cloud/spanner > checkpoint-stream > split-array-stream > async > lodash': + patched: '2020-04-30T23:40:37.008Z' diff --git a/functions/spanner/package.json b/functions/spanner/package.json index 33c327e51f..2b72a457cb 100644 --- a/functions/spanner/package.json +++ b/functions/spanner/package.json @@ -12,10 +12,13 @@ "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": { - "@google-cloud/spanner": "2.2.1" + "@google-cloud/spanner": "2.2.1", + "snyk": "^1.316.1" }, "devDependencies": { "@google-cloud/nodejs-repo-tools": "^3.0.0", @@ -26,5 +29,6 @@ "cloud-repo-tools": { "requiresKeyFile": true, "requiresProjectId": true - } + }, + "snyk": true }