diff --git a/functions/.snyk b/functions/.snyk new file mode 100644 index 0000000..1a37f18 --- /dev/null +++ b/functions/.snyk @@ -0,0 +1,38 @@ +# 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: + SNYK-JS-AXIOS-174505: + - firebase-admin > @google-cloud/storage > @google-cloud/common > google-auto-auth > google-auth-library > gtoken > axios: + patched: '2019-05-05T23:31:24.742Z' + - firebase-admin > @google-cloud/storage > gcs-resumable-upload > google-auto-auth > google-auth-library > axios: + patched: '2019-05-05T23:31:24.742Z' + - firebase-admin > @google-cloud/storage > @google-cloud/common > google-auto-auth > google-auth-library > axios: + patched: '2019-05-05T23:31:24.742Z' + - firebase-admin > @google-cloud/storage > gcs-resumable-upload > google-auto-auth > gcp-metadata > axios: + patched: '2019-05-05T23:31:24.742Z' + - firebase-admin > @google-cloud/storage > @google-cloud/common > google-auto-auth > gcp-metadata > axios: + patched: '2019-05-05T23:31:24.742Z' + - firebase-admin > @google-cloud/firestore > google-gax > google-auto-auth > gcp-metadata > axios: + patched: '2019-05-05T23:31:24.742Z' + - firebase-admin > @google-cloud/firestore > @google-cloud/common-grpc > @google-cloud/common > google-auto-auth > gcp-metadata > axios: + patched: '2019-05-05T23:31:24.742Z' + - firebase-admin > @google-cloud/firestore > google-gax > google-auto-auth > google-auth-library > gcp-metadata > axios: + patched: '2019-05-05T23:31:24.742Z' + - firebase-admin > @google-cloud/firestore > google-gax > google-auto-auth > google-auth-library > axios: + patched: '2019-05-05T23:31:24.742Z' + - firebase-admin > @google-cloud/firestore > google-gax > google-auto-auth > google-auth-library > gtoken > axios: + patched: '2019-05-05T23:31:24.742Z' + - firebase-admin > @google-cloud/storage > gcs-resumable-upload > google-auto-auth > google-auth-library > gtoken > axios: + patched: '2019-05-05T23:31:24.742Z' + - firebase-admin > @google-cloud/firestore > @google-cloud/common-grpc > @google-cloud/common > google-auto-auth > google-auth-library > axios: + patched: '2019-05-05T23:31:24.742Z' + - firebase-admin > @google-cloud/storage > gcs-resumable-upload > google-auto-auth > google-auth-library > gcp-metadata > axios: + patched: '2019-05-05T23:31:24.742Z' + - firebase-admin > @google-cloud/storage > @google-cloud/common > google-auto-auth > google-auth-library > gcp-metadata > axios: + patched: '2019-05-05T23:31:24.742Z' + - firebase-admin > @google-cloud/firestore > @google-cloud/common-grpc > @google-cloud/common > google-auto-auth > google-auth-library > gcp-metadata > axios: + patched: '2019-05-05T23:31:24.742Z' + - firebase-admin > @google-cloud/firestore > @google-cloud/common-grpc > @google-cloud/common > google-auto-auth > google-auth-library > gtoken > axios: + patched: '2019-05-05T23:31:24.742Z' diff --git a/functions/package.json b/functions/package.json index 381fbc5..a40def7 100644 --- a/functions/package.json +++ b/functions/package.json @@ -7,15 +7,19 @@ "shell": "firebase experimental:functions:shell", "start": "npm run shell", "deploy": "firebase deploy --only functions", - "logs": "firebase functions:log" + "logs": "firebase functions:log", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "dependencies": { "firebase-admin": "~5.8.1", - "firebase-functions": "^0.8.1" + "firebase-functions": "^0.8.1", + "snyk": "^1.161.1" }, "devDependencies": { "eslint": "^4.12.0", "eslint-plugin-promise": "^3.6.0" }, - "private": true + "private": true, + "snyk": true }