diff --git a/tests/cases/user/antd/.snyk b/tests/cases/user/antd/.snyk new file mode 100644 index 0000000000000..07b2bb833caa2 --- /dev/null +++ b/tests/cases/user/antd/.snyk @@ -0,0 +1,16 @@ +# 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: + - antd > lodash: + patched: '2020-05-01T04:51:02.215Z' + - antd > @ant-design/react-slick > lodash: + patched: '2020-05-01T04:51:02.215Z' + - antd > rc-steps > lodash: + patched: '2020-05-01T04:51:02.215Z' + - antd > rc-table > lodash: + patched: '2020-05-01T04:51:02.215Z' + - antd > rc-tabs > lodash: + patched: '2020-05-01T04:51:02.215Z' diff --git a/tests/cases/user/antd/package.json b/tests/cases/user/antd/package.json index a20168dd27b99..104bcc78e1e21 100644 --- a/tests/cases/user/antd/package.json +++ b/tests/cases/user/antd/package.json @@ -7,6 +7,12 @@ "license": "Apache-2.0", "dependencies": { "@types/react": "^16.0.18", - "antd": "latest" - } + "antd": "latest", + "snyk": "^1.316.1" + }, + "scripts": { + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }