diff --git a/hack/docs/.snyk b/hack/docs/.snyk new file mode 100644 index 000000000..7d3295324 --- /dev/null +++ b/hack/docs/.snyk @@ -0,0 +1,8 @@ +# 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-LODASH-450202: + - lodash: + patched: '2019-07-03T23:20:54.235Z' diff --git a/hack/docs/package.json b/hack/docs/package.json index 9f921a264..7c10dc248 100644 --- a/hack/docs/package.json +++ b/hack/docs/package.json @@ -4,7 +4,9 @@ "description": "supportbundle docs hacks", "main": "build/index.js", "scripts": { - "test": "mocha" + "test": "mocha", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -28,7 +30,8 @@ "tmp": "^0.0.33", "ts-node": "^4.1.0", "tv4": "^1.3.0", - "yargs": "^12.0.2" + "yargs": "^12.0.2", + "snyk": "^1.189.0" }, "devDependencies": { "@types/chai": "^4.1.4", @@ -41,5 +44,6 @@ "mocha-typescript": "^1.1.17", "tslint": "^5.9.1", "typescript": "^2.6.2" - } + }, + "snyk": true }