diff --git a/services/test-suite/.snyk b/services/test-suite/.snyk new file mode 100644 index 0000000..03e713b --- /dev/null +++ b/services/test-suite/.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: + - request-promise-native > request-promise-core > lodash: + patched: '2020-05-01T05:13:04.975Z' diff --git a/services/test-suite/package.json b/services/test-suite/package.json index 1c4d91b..f575253 100644 --- a/services/test-suite/package.json +++ b/services/test-suite/package.json @@ -10,14 +10,18 @@ "mocha": "5.2.0", "request-promise-native": "1.0.5", "request": "2.87.0", - "socket.io-client": "2.1.1" + "socket.io-client": "2.1.1", + "snyk": "^1.316.1" }, "scripts": { - "test": "LOCAL=true REGION=us-east-1 ENV_NAME=test REDIS_ENDPOINT=localhost DYNAMODB_ENDPOINT=http://localhost:8000 AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test mocha -b" + "test": "LOCAL=true REGION=us-east-1 ENV_NAME=test REDIS_ENDPOINT=localhost DYNAMODB_ENDPOINT=http://localhost:8000 AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test mocha -b", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "eslintConfig": { "globals": { "Vue": true } - } + }, + "snyk": true }