From e471c451660605766df184b0a5e31f6f47a06dbd Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 30 Apr 2020 23:31:01 +0100 Subject: [PATCH 1/2] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..458c182 --- /dev/null +++ b/.snyk @@ -0,0 +1,18 @@ +# 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: + - apollo-server-express > apollo-server-core > lodash: + patched: '2020-04-30T22:31:00.166Z' + - apollo-server > apollo-server-core > lodash: + patched: '2020-04-30T22:31:00.166Z' + - apollo-server-express > apollo-server-core > apollo-engine-reporting > lodash: + patched: '2020-04-30T22:31:00.166Z' + - apollo-server > apollo-server-core > apollo-engine-reporting > lodash: + patched: '2020-04-30T22:31:00.166Z' + - apollo-server > apollo-server-express > apollo-server-core > lodash: + patched: '2020-04-30T22:31:00.166Z' + - apollo-server > apollo-server-express > apollo-server-core > apollo-engine-reporting > lodash: + patched: '2020-04-30T22:31:00.166Z' From ccfa1d8f0562d83df6030217d43c50d0fb82d42e Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 30 Apr 2020 23:31:02 +0100 Subject: [PATCH 2/2] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 780b1c7..60b63d3 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "index.js", "scripts": { "start": "node index.js", - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "keywords": [], "author": "Alasdair McLeay", @@ -14,7 +16,8 @@ "apollo-server": "^2.1.0", "apollo-server-express": "^2.1.0", "graphql": "^14.0.2", - "graphql-playground-react": "^1.7.20" + "graphql-playground-react": "^1.7.20", + "snyk": "^1.316.1" }, "devDependencies": {}, "repository": { @@ -24,5 +27,6 @@ "bugs": { "url": "https://github.com/penx/graphql-server-example/issues" }, - "homepage": "https://github.com/penx/graphql-server-example#readme" + "homepage": "https://github.com/penx/graphql-server-example#readme", + "snyk": true }