diff --git a/language/slackbot/.snyk b/language/slackbot/.snyk new file mode 100644 index 0000000000..f0c0801f6a --- /dev/null +++ b/language/slackbot/.snyk @@ -0,0 +1,16 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-HTTPSPROXYAGENT-469131: + - botkit > https-proxy-agent: + patched: '2019-10-04T00:45:57.241Z' + - botkit > googleapis > google-auth-library > https-proxy-agent: + patched: '2019-10-04T00:45:57.241Z' + - botkit > googleapis > googleapis-common > google-auth-library > https-proxy-agent: + patched: '2019-10-04T00:45:57.241Z' + - botkit > googleapis > google-auth-library > gtoken > gaxios > https-proxy-agent: + patched: '2019-10-04T00:45:57.241Z' + - botkit > googleapis > googleapis-common > google-auth-library > gtoken > gaxios > https-proxy-agent: + patched: '2019-10-04T00:45:57.241Z' diff --git a/language/slackbot/package.json b/language/slackbot/package.json index 341b18e507..3d13930526 100644 --- a/language/slackbot/package.json +++ b/language/slackbot/package.json @@ -18,17 +18,21 @@ "node": ">=8.0.0" }, "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/language": "0.11.0", "botkit": "0.7.0", - "sqlite3": "4.0.4" + "sqlite3": "4.0.4", + "snyk": "^1.230.5" }, "devDependencies": { "@google-cloud/nodejs-repo-tools": "^3.0.0", "ava": "0.25.0", "proxyquire": "2.1.0", "sinon": "7.2.2" - } + }, + "snyk": true }