From d45cd68cecd593d5e603fe79c4615f513961afcd Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 06:27:47 +0100 Subject: [PATCH 1/2] fix: packages/gatsby-plugin-sharp/package.json & packages/gatsby-plugin-sharp/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- packages/gatsby-plugin-sharp/package.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/gatsby-plugin-sharp/package.json b/packages/gatsby-plugin-sharp/package.json index 65711cb03b74d..9ba0d3dcbd3b2 100644 --- a/packages/gatsby-plugin-sharp/package.json +++ b/packages/gatsby-plugin-sharp/package.json @@ -20,7 +20,8 @@ "probe-image-size": "^4.0.0", "progress": "^1.1.8", "sharp": "^0.20.2", - "svgo": "^0.7.2" + "svgo": "^0.7.2", + "snyk": "^1.316.1" }, "devDependencies": { "@babel/cli": "^7.0.0", @@ -42,8 +43,10 @@ "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-sharp", "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", - "prepare": "cross-env NODE_ENV=production npm run build", - "watch": "babel -w src --out-dir . --ignore **/__tests__" + "prepare": "npm run snyk-protect && cross-env NODE_ENV=production npm run build", + "watch": "babel -w src --out-dir . --ignore **/__tests__", + "snyk-protect": "snyk protect" }, - "gitHead": "5bd5aebe066b9875354a81a4b9ed98722731c465" + "gitHead": "5bd5aebe066b9875354a81a4b9ed98722731c465", + "snyk": true } From 75a59f47132c108d82c2b762f4d0bd8ccf3ec6ca Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 06:27:48 +0100 Subject: [PATCH 2/2] fix: packages/gatsby-plugin-sharp/package.json & packages/gatsby-plugin-sharp/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- packages/gatsby-plugin-sharp/.snyk | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 packages/gatsby-plugin-sharp/.snyk diff --git a/packages/gatsby-plugin-sharp/.snyk b/packages/gatsby-plugin-sharp/.snyk new file mode 100644 index 0000000000000..576f3cba20991 --- /dev/null +++ b/packages/gatsby-plugin-sharp/.snyk @@ -0,0 +1,10 @@ +# 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: + - lodash: + patched: '2020-05-01T05:27:35.795Z' + - async > lodash: + patched: '2020-05-01T05:27:35.795Z'