diff --git a/examples/styleguide/.snyk b/examples/styleguide/.snyk new file mode 100644 index 0000000000000..e6490e827e094 --- /dev/null +++ b/examples/styleguide/.snyk @@ -0,0 +1,16 @@ +# 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: + - gatsby > gatsby-telemetry > lodash: + patched: '2020-05-14T08:44:39.216Z' + - gatsby > gatsby-plugin-page-creator > lodash: + patched: '2020-05-14T08:44:39.216Z' + - gatsby > gatsby-cli > gatsby-telemetry > lodash: + patched: '2020-05-14T08:44:39.216Z' + - gatsby > gatsby-plugin-page-creator > gatsby-page-utils > lodash: + patched: '2020-05-14T08:44:39.216Z' + - gatsby > gatsby-cli > gatsby-recipes > gatsby-telemetry > lodash: + patched: '2020-05-14T08:44:39.216Z' diff --git a/examples/styleguide/package.json b/examples/styleguide/package.json index 8bdb67ead365f..a783e9926c787 100644 --- a/examples/styleguide/package.json +++ b/examples/styleguide/package.json @@ -13,7 +13,8 @@ "html-to-react": "^1.3.1", "react": "^16.4.0", "react-dom": "^16.4.0", - "react-live": "^1.7.1" + "react-live": "^1.7.1", + "snyk": "^1.320.3" }, "keywords": [ "gatsby" @@ -23,6 +24,9 @@ "scripts": { "develop": "gatsby develop", "build": "gatsby build", - "start": "npm run develop" - } + "start": "npm run develop", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }