From df2aaa7886a8c44aa7088380202959dce5700868 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 3 Apr 2019 04:36:36 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:base64url:20180511 - https://snyk.io/vuln/npm:hoek:20180212 - https://snyk.io/vuln/npm:protobufjs:20180305 - https://snyk.io/vuln/npm:tunnel-agent:20170305 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:hoek:20180212 - https://snyk.io/vuln/npm:tunnel-agent:20170305 --- .snyk | 37 +++++++++++++++++++++++++++++++++++++ package.json | 10 +++++++--- 2 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 000000000..34b8e2b46 --- /dev/null +++ b/.snyk @@ -0,0 +1,37 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.3 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:hoek:20180212': + - gcloud > gce-images > google-auto-auth > google-auth-library > request > hawk > hoek: + patched: '2019-04-03T04:36:34.690Z' + - gcloud > retry-request > request > hawk > hoek: + patched: '2019-04-03T04:36:34.690Z' + - gcloud > google-auto-auth > google-auth-library > request > hawk > hoek: + patched: '2019-04-03T04:36:34.690Z' + - gcloud > retry-request > request > hawk > sntp > hoek: + patched: '2019-04-03T04:36:34.690Z' + - gcloud > retry-request > request > hawk > cryptiles > boom > hoek: + patched: '2019-04-03T04:36:34.690Z' + - gcloud > google-auto-auth > google-auth-library > request > hawk > boom > hoek: + patched: '2019-04-03T04:36:34.690Z' + - gcloud > google-auto-auth > google-auth-library > request > hawk > sntp > hoek: + patched: '2019-04-03T04:36:34.690Z' + - gcloud > retry-request > request > hawk > boom > hoek: + patched: '2019-04-03T04:36:34.690Z' + - gcloud > google-auto-auth > google-auth-library > request > hawk > cryptiles > boom > hoek: + patched: '2019-04-03T04:36:34.690Z' + - gcloud > gce-images > google-auto-auth > google-auth-library > request > hawk > sntp > hoek: + patched: '2019-04-03T04:36:34.690Z' + - gcloud > gce-images > google-auto-auth > google-auth-library > request > hawk > boom > hoek: + patched: '2019-04-03T04:36:34.690Z' + - gcloud > gce-images > google-auto-auth > google-auth-library > request > hawk > cryptiles > boom > hoek: + patched: '2019-04-03T04:36:34.690Z' + 'npm:tunnel-agent:20170305': + - gcloud > retry-request > request > tunnel-agent: + patched: '2019-04-03T04:36:34.690Z' + - gcloud > google-auto-auth > google-auth-library > request > tunnel-agent: + patched: '2019-04-03T04:36:34.690Z' + - gcloud > gce-images > google-auto-auth > google-auth-library > request > tunnel-agent: + patched: '2019-04-03T04:36:34.690Z' diff --git a/package.json b/package.json index 5e3a0e04d..421ae8e48 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,9 @@ "author": "The AMP HTML Authors", "license": "Apache-2.0", "scripts": { - "start": "gulp serve" + "start": "gulp serve", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "basscss": "^8.0.3", @@ -22,7 +24,8 @@ "compression": "^1.6.1", "connect": "^3.4.0", "express": "^4.13.4", - "gcloud": "^0.27.0" + "gcloud": "^0.36.0", + "snyk": "^1.147.0" }, "devDependencies": { "amphtml-validator": "^1.0.15", @@ -57,5 +60,6 @@ "string": "^3.3.1", "through2": "^2.0.1", "yargs": "^3.10.0" - } + }, + "snyk": true }