diff --git a/vision/.snyk b/vision/.snyk new file mode 100644 index 0000000000..c7d81f1114 --- /dev/null +++ b/vision/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:tunnel-agent:20170305': + - natural > log4js > loggly > request > tunnel-agent: + patched: '2018-06-25T23:03:22.828Z' diff --git a/vision/package.json b/vision/package.json index b8097ec80e..d46db981b9 100644 --- a/vision/package.json +++ b/vision/package.json @@ -5,7 +5,9 @@ "license": "Apache Version 2.0", "author": "Google Inc.", "scripts": { - "test": "cd ..; npm run st -- --verbose vision/system-test/*.test.js" + "test": "cd ..; npm run st -- --verbose vision/system-test/*.test.js", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "dependencies": { "@google-cloud/storage": "0.7.0", @@ -13,12 +15,14 @@ "async": "2.1.4", "natural": "0.4.0", "redis": "2.6.5", - "yargs": "6.6.0" + "yargs": "6.6.0", + "snyk": "^1.85.0" }, "optionalDependencies": { "canvas": "1.6.2" }, "engines": { "node": ">=4.3.2" - } + }, + "snyk": true }