From 8aa2ae2323e6975f89cb0eb8442ca6c99960ccf9 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 18 Jun 2020 23:59:37 +0000 Subject: [PATCH] fix: examples/sitemap/package.json & examples/sitemap/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- examples/sitemap/.snyk | 34 ++++++++++++++++++++++++++++++++++ examples/sitemap/package.json | 10 +++++++--- 2 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 examples/sitemap/.snyk diff --git a/examples/sitemap/.snyk b/examples/sitemap/.snyk new file mode 100644 index 0000000000000..7fca11455614a --- /dev/null +++ b/examples/sitemap/.snyk @@ -0,0 +1,34 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.15.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - gatsby > gatsby-cli > gatsby-recipes > @mdx-js/mdx > remark-mdx > @babel/core > lodash: + patched: '2020-06-18T23:59:33.874Z' + - gatsby > gatsby-cli > gatsby-recipes > @mdx-js/mdx > remark-mdx > @babel/core > @babel/helper-module-transforms > lodash: + patched: '2020-06-18T23:59:33.874Z' + - gatsby > gatsby-cli > gatsby-recipes > @mdx-js/runtime > @mdx-js/mdx > remark-mdx > @babel/core > lodash: + patched: '2020-06-18T23:59:33.874Z' + - gatsby > gatsby-cli > gatsby-recipes > @mdx-js/mdx > remark-mdx > @babel/core > @babel/helpers > @babel/traverse > lodash: + patched: '2020-06-18T23:59:33.874Z' + - gatsby > gatsby-cli > gatsby-recipes > @mdx-js/runtime > @mdx-js/mdx > remark-mdx > @babel/core > @babel/helper-module-transforms > lodash: + patched: '2020-06-18T23:59:33.874Z' + - gatsby > gatsby-cli > gatsby-recipes > @mdx-js/mdx > remark-mdx > @babel/core > @babel/helper-module-transforms > @babel/helper-replace-supers > @babel/traverse > lodash: + patched: '2020-06-18T23:59:33.874Z' + - gatsby > gatsby-cli > gatsby-recipes > @mdx-js/runtime > @mdx-js/mdx > remark-mdx > @babel/core > @babel/helpers > @babel/traverse > lodash: + patched: '2020-06-18T23:59:33.874Z' + - gatsby > gatsby-cli > gatsby-recipes > @mdx-js/mdx > remark-mdx > @babel/core > @babel/helper-module-transforms > @babel/helper-replace-supers > @babel/traverse > @babel/generator > lodash: + patched: '2020-06-18T23:59:33.874Z' + - gatsby > gatsby-cli > gatsby-recipes > @mdx-js/runtime > @mdx-js/mdx > remark-mdx > @babel/core > @babel/helper-module-transforms > @babel/helper-replace-supers > @babel/traverse > lodash: + patched: '2020-06-18T23:59:33.874Z' + - gatsby > gatsby-cli > gatsby-recipes > @mdx-js/mdx > remark-mdx > @babel/core > @babel/helper-module-transforms > @babel/helper-replace-supers > @babel/traverse > @babel/helper-split-export-declaration > @babel/types > lodash: + patched: '2020-06-18T23:59:33.874Z' + - gatsby > gatsby-cli > gatsby-recipes > @mdx-js/runtime > @mdx-js/mdx > remark-mdx > @babel/core > @babel/helper-module-transforms > @babel/helper-replace-supers > @babel/traverse > @babel/generator > lodash: + patched: '2020-06-18T23:59:33.874Z' + - gatsby > gatsby-cli > gatsby-recipes > @mdx-js/runtime > @mdx-js/mdx > remark-mdx > @babel/core > @babel/helper-module-transforms > @babel/helper-replace-supers > @babel/traverse > @babel/helper-split-export-declaration > @babel/types > lodash: + patched: '2020-06-18T23:59:33.874Z' + - gatsby > gatsby-cli > gatsby-recipes > @mdx-js/mdx > remark-mdx > @babel/core > @babel/helper-module-transforms > @babel/helper-replace-supers > @babel/traverse > @babel/helper-function-name > @babel/template > @babel/types > lodash: + patched: '2020-06-18T23:59:33.874Z' + - gatsby > gatsby-cli > gatsby-recipes > @mdx-js/runtime > @mdx-js/mdx > remark-mdx > @babel/core > @babel/helper-module-transforms > @babel/helper-replace-supers > @babel/traverse > @babel/helper-function-name > @babel/template > @babel/types > lodash: + patched: '2020-06-18T23:59:33.874Z' diff --git a/examples/sitemap/package.json b/examples/sitemap/package.json index bd81f1fd3e9a2..09394d68c3e1c 100644 --- a/examples/sitemap/package.json +++ b/examples/sitemap/package.json @@ -10,7 +10,8 @@ "gatsby-source-filesystem": "^2.0.1", "gatsby-transformer-remark": "^2.1.1", "react": "^16.3.2", - "react-dom": "^16.3.2" + "react-dom": "^16.3.2", + "snyk": "^1.345.1" }, "keywords": [ "gatsby" @@ -19,6 +20,9 @@ "main": "index.js", "scripts": { "develop": "gatsby develop", - "build": "gatsby build" - } + "build": "gatsby build", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true } \ No newline at end of file