diff --git a/packages/backend/.snyk b/packages/backend/.snyk new file mode 100644 index 0000000..d212e26 --- /dev/null +++ b/packages/backend/.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: + - winston > async > lodash: + patched: '2020-05-01T04:32:28.351Z' diff --git a/packages/backend/package.json b/packages/backend/package.json index 34178d3..71414d2 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -10,7 +10,9 @@ "lint": "tslint -p . --fix", "start": "tsc && cross-env SESSION_SECRET=secret PORT=3000 NODE_ENV=development node dist/main.js", "test": "jest --logHeapUsage --coverage --maxWorkers=4 --forceExit", - "test:watch": "jest --watch --maxWorkers=2" + "test:watch": "jest --watch --maxWorkers=2", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "@masterthesis/shared": "1.0.0", @@ -38,7 +40,8 @@ "promises-all": "^1.0.0", "raven": "^2.6.4", "uuid": "^3.2.1", - "winston": "^3.0.0" + "winston": "^3.0.0", + "snyk": "^1.316.1" }, "devDependencies": { "@types/bcrypt": "^3.0.0", @@ -96,5 +99,6 @@ "nohoist": [ "**" ] - } + }, + "snyk": true }