diff --git a/.snyk b/.snyk new file mode 100644 index 000000000..ac6691337 --- /dev/null +++ b/.snyk @@ -0,0 +1,28 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:hoek:20180212': + - gcloud > retry-request > request > hawk > cryptiles > boom > hoek: + patched: '2024-09-17T04:03:26.803Z' + id: 'npm:hoek:20180212' + path: gcloud > retry-request > request > hawk > cryptiles > boom > hoek + - gcloud > google-auto-auth > google-auth-library > request > hawk > cryptiles > boom > hoek: + patched: '2024-09-17T04:03:26.803Z' + id: 'npm:hoek:20180212' + path: >- + gcloud > google-auto-auth > google-auth-library > request > hawk > + cryptiles > boom > hoek + - gcloud > gce-images > google-auto-auth > google-auth-library > request > hawk > cryptiles > boom > hoek: + patched: '2024-09-17T04:03:26.803Z' + id: 'npm:hoek:20180212' + path: >- + gcloud > gce-images > google-auto-auth > google-auth-library > request + > hawk > cryptiles > boom > hoek + - gcloud > gcs-resumable-upload > google-auto-auth > google-auth-library > request > hawk > cryptiles > boom > hoek: + patched: '2024-09-17T04:03:26.803Z' + id: 'npm:hoek:20180212' + path: >- + gcloud > gcs-resumable-upload > google-auto-auth > google-auth-library + > request > hawk > cryptiles > boom > hoek diff --git a/package.json b/package.json index 5e3a0e04d..957b85c4f 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", + "prepublish": "npm run snyk-protect", + "snyk-protect": "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.27.0", + "@snyk/protect": "latest" }, "devDependencies": { "amphtml-validator": "^1.0.15", @@ -57,5 +60,6 @@ "string": "^3.3.1", "through2": "^2.0.1", "yargs": "^3.10.0" - } + }, + "snyk": true }