diff --git a/.snyk b/.snyk new file mode 100644 index 00000000000..5508898bfd4 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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: + - jsdom > request-promise-native > request-promise-core > lodash: + patched: '2020-04-30T23:31:14.312Z' + - mocha-jsdom > jsdom > request-promise-native > request-promise-core > lodash: + patched: '2020-04-30T23:31:14.312Z' diff --git a/package.json b/package.json index 8596f2e04fe..456ff4b277c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "doc": "docs", "test": "tests/js/tests" }, - "dependencies": {}, + "dependencies": { + "snyk": "^1.316.1" + }, "devDependencies": { "chai": "^3.5.0", "jsdom": "11.11.0", @@ -16,7 +18,9 @@ "sinon": "^1.17.6" }, "scripts": { - "test": "./node_modules/.bin/mocha tests/js/tests/*.test.js --timeout 0" + "test": "./node_modules/.bin/mocha tests/js/tests/*.test.js --timeout 0", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -31,5 +35,6 @@ "bugs": { "url": "https://github.com/yiisoft/yii2/issues" }, - "homepage": "https://github.com/yiisoft/yii2" + "homepage": "https://github.com/yiisoft/yii2", + "snyk": true }