diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..0a9d6e8a --- /dev/null +++ b/.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: + - async > lodash: + patched: '2020-05-01T00:08:56.096Z' diff --git a/package.json b/package.json index 35f70dc5..36ba2975 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,8 @@ "express": "^4.0.0", "hapi": "^17.5.1", "inert": "^5.1.0", - "semver": "^5.3.0" + "semver": "^5.3.0", + "snyk": "^1.316.1" }, "deprecated": false, "description": "Agenda Dashboard", @@ -65,7 +66,9 @@ "scripts": { "ava": "ava -v -c 1", "lint": "xo", - "test": "run-p lint ava" + "test": "run-p lint ava", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "version": "1.0.0", "xo": { @@ -90,5 +93,6 @@ "ignores": [ "public/**/*" ] - } + }, + "snyk": true }