diff --git a/tests/cases/user/portfinder/.snyk b/tests/cases/user/portfinder/.snyk new file mode 100644 index 0000000000000..88cf9255b5251 --- /dev/null +++ b/tests/cases/user/portfinder/.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: + - portfinder > async > lodash: + patched: '2020-05-01T00:58:28.872Z' diff --git a/tests/cases/user/portfinder/package.json b/tests/cases/user/portfinder/package.json index e7431dce9a21a..9253e77952ae2 100644 --- a/tests/cases/user/portfinder/package.json +++ b/tests/cases/user/portfinder/package.json @@ -6,6 +6,12 @@ "author": "", "license": "Apache-2.0", "dependencies": { - "portfinder": "latest" - } + "portfinder": "latest", + "snyk": "^1.316.1" + }, + "scripts": { + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }