diff --git a/@commitlint/rules/.snyk b/@commitlint/rules/.snyk new file mode 100644 index 0000000000..20ac0e77b7 --- /dev/null +++ b/@commitlint/rules/.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: + - '@commitlint/ensure > lodash': + patched: '2020-05-01T08:36:56.495Z' diff --git a/@commitlint/rules/package.json b/@commitlint/rules/package.json index 3cee9a2dab..1603af423e 100644 --- a/@commitlint/rules/package.json +++ b/@commitlint/rules/package.json @@ -9,7 +9,9 @@ ], "scripts": { "deps": "dep-check", - "pkg": "pkg-check" + "pkg": "pkg-check", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "engines": { "node": ">=8" @@ -44,6 +46,8 @@ "@commitlint/ensure": "^8.3.4", "@commitlint/message": "^8.3.4", "@commitlint/to-lines": "^8.3.4", - "@commitlint/types": "^8.3.4" - } + "@commitlint/types": "^8.3.4", + "snyk": "^1.316.1" + }, + "snyk": true }