diff --git a/iot/manager/.snyk b/iot/manager/.snyk new file mode 100644 index 0000000000..992c98e8b2 --- /dev/null +++ b/iot/manager/.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/pubsub > google-gax > @grpc/proto-loader > lodash': + patched: '2020-05-01T04:22:52.264Z' diff --git a/iot/manager/package.json b/iot/manager/package.json index 480528d42f..3f30148355 100644 --- a/iot/manager/package.json +++ b/iot/manager/package.json @@ -13,12 +13,15 @@ "node": ">=8.0.0" }, "scripts": { - "test": "repo-tools test run --cmd ava -- -T 3m --verbose system-test/*.test.js" + "test": "repo-tools test run --cmd ava -- -T 3m --verbose system-test/*.test.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "@google-cloud/pubsub": "0.22.2", "googleapis": "^36.0.0", - "yargs": "12.0.5" + "yargs": "12.0.5", + "snyk": "^1.316.1" }, "devDependencies": { "@google-cloud/nodejs-repo-tools": "^3.0.0", @@ -35,5 +38,6 @@ ] } } - } + }, + "snyk": true }