From a8e40b8f968e71e3fcb3787b73bdf07fd8298449 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 3 Oct 2019 23:40:16 +0000 Subject: [PATCH] fix: functions/spanner/package.json & functions/spanner/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-HTTPSPROXYAGENT-469131 --- functions/spanner/.snyk | 18 ++++++++++++++++++ functions/spanner/package.json | 10 +++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 functions/spanner/.snyk diff --git a/functions/spanner/.snyk b/functions/spanner/.snyk new file mode 100644 index 0000000000..e4c1f5a4eb --- /dev/null +++ b/functions/spanner/.snyk @@ -0,0 +1,18 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-HTTPSPROXYAGENT-469131: + - '@google-cloud/spanner > google-auth-library > https-proxy-agent': + patched: '2019-10-03T23:40:14.297Z' + - '@google-cloud/spanner > google-gax > google-auth-library > https-proxy-agent': + patched: '2019-10-03T23:40:14.297Z' + - '@google-cloud/spanner > google-auth-library > gtoken > gaxios > https-proxy-agent': + patched: '2019-10-03T23:40:14.297Z' + - '@google-cloud/spanner > @google-cloud/common-grpc > @google-cloud/common > google-auth-library > https-proxy-agent': + patched: '2019-10-03T23:40:14.297Z' + - '@google-cloud/spanner > google-gax > google-auth-library > gtoken > gaxios > https-proxy-agent': + patched: '2019-10-03T23:40:14.297Z' + - '@google-cloud/spanner > @google-cloud/common-grpc > @google-cloud/common > google-auth-library > gtoken > gaxios > https-proxy-agent': + patched: '2019-10-03T23:40:14.297Z' diff --git a/functions/spanner/package.json b/functions/spanner/package.json index 33c327e51f..ce46a0e592 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.230.5" }, "devDependencies": { "@google-cloud/nodejs-repo-tools": "^3.0.0", @@ -26,5 +29,6 @@ "cloud-repo-tools": { "requiresKeyFile": true, "requiresProjectId": true - } + }, + "snyk": true }