diff --git a/auth/.snyk b/auth/.snyk new file mode 100644 index 0000000000..008c6c07c8 --- /dev/null +++ b/auth/.snyk @@ -0,0 +1,8 @@ +# 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/storage > async > lodash': + patched: '2020-05-01T08:41:48.649Z' diff --git a/auth/package.json b/auth/package.json index 0689a2d6cd..07009aebca 100644 --- a/auth/package.json +++ b/auth/package.json @@ -12,11 +12,14 @@ "node": ">=8" }, "scripts": { - "test": "repo-tools test run --cmd ava -- -T 20s --verbose system-test/*.test.js" + "test": "repo-tools test run --cmd ava -- -T 20s --verbose system-test/*.test.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "@google-cloud/storage": "^2.0.3", - "yargs": "12.0.5" + "yargs": "12.0.5", + "snyk": "^1.316.1" }, "devDependencies": { "@google-cloud/nodejs-repo-tools": "^3.0.0", @@ -25,5 +28,6 @@ "cloud-repo-tools": { "requiresKeyFile": true, "requiresProjectId": true - } + }, + "snyk": true }