diff --git a/examples/using-contentful/.snyk b/examples/using-contentful/.snyk new file mode 100644 index 0000000000000..57a7a3d8eb2a0 --- /dev/null +++ b/examples/using-contentful/.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: + - gatsby-transformer-remark > sanitize-html > lodash: + patched: '2020-05-30T00:12:42.064Z' diff --git a/examples/using-contentful/package.json b/examples/using-contentful/package.json index 55842370f406b..3693c6885e40c 100644 --- a/examples/using-contentful/package.json +++ b/examples/using-contentful/package.json @@ -18,7 +18,8 @@ "react-typography": "^0.16.3", "slash": "^2.0.0", "typography": "^0.16.7", - "typography-breakpoint-constants": "^0.15.0" + "typography-breakpoint-constants": "^0.15.0", + "snyk": "^1.332.1" }, "keywords": [ "gatsby" @@ -31,6 +32,9 @@ "scripts": { "develop": "gatsby develop", "build": "gatsby build", - "start": "gatsby serve" - } + "start": "gatsby serve", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true } \ No newline at end of file