diff --git a/@commitlint/lint/.snyk b/@commitlint/lint/.snyk new file mode 100644 index 0000000000..beb1ca6d66 --- /dev/null +++ b/@commitlint/lint/.snyk @@ -0,0 +1,12 @@ +# 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/parse > lodash': + patched: '2020-05-01T02:54:00.123Z' + - '@commitlint/parse > conventional-commits-parser > lodash': + patched: '2020-05-01T02:54:00.123Z' + - '@commitlint/rules > @commitlint/ensure > lodash': + patched: '2020-05-01T02:54:00.123Z' diff --git a/@commitlint/lint/package.json b/@commitlint/lint/package.json index a53dc2294c..8e5a729184 100644 --- a/@commitlint/lint/package.json +++ b/@commitlint/lint/package.json @@ -9,7 +9,9 @@ ], "scripts": { "deps": "dep-check", - "pkg": "pkg-check --skip-import" + "pkg": "pkg-check --skip-import", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "engines": { "node": ">=8" @@ -41,6 +43,8 @@ "@commitlint/is-ignored": "^8.3.5", "@commitlint/parse": "^8.3.4", "@commitlint/rules": "^8.3.4", - "@commitlint/types": "^8.3.4" - } + "@commitlint/types": "^8.3.4", + "snyk": "^1.316.1" + }, + "snyk": true }