diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..36ca712 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:marked:20170112': + - actionhero > jsdoc > marked: + patched: '2017-10-23T22:52:08.358Z' diff --git a/package.json b/package.json index a03dfcc..4364f46 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,8 @@ "sanitize-html": "^1.14.1", "sequelize": "^3.30.4", "sequelize-cli": "^2.8.0", - "ws": "^3.1.0" + "ws": "^3.1.0", + "snyk": "^1.45.0" }, "devDependencies": { "mocha": "^3.5.0", @@ -66,6 +67,9 @@ "postinstall": "./bin/postinstall", "migrate": "sequelize db:migrate", "faker:run": "node db/faker/run.js", - "faker:seed": "node db/faker/seed.js" - } + "faker:seed": "node db/faker/seed.js", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" + }, + "snyk": true }