diff --git a/examples/sitemap/.snyk b/examples/sitemap/.snyk new file mode 100644 index 0000000000000..1f7d942441bf5 --- /dev/null +++ b/examples/sitemap/.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-30T07:48:59.318Z' diff --git a/examples/sitemap/package.json b/examples/sitemap/package.json index 87965d9ba2730..30749c48ddb55 100644 --- a/examples/sitemap/package.json +++ b/examples/sitemap/package.json @@ -8,13 +8,19 @@ "gatsby": "latest", "gatsby-source-filesystem": "latest", "gatsby-transformer-remark": "latest", - "gatsby-plugin-sitemap": "latest" + "gatsby-plugin-sitemap": "latest", + "snyk": "^1.332.1" }, - "keywords": ["gatsby"], + "keywords": [ + "gatsby" + ], "license": "MIT", "main": "index.js", "scripts": { "develop": "gatsby develop", - "build": "gatsby build" - } + "build": "gatsby build", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }