diff --git a/examples/hn/.snyk b/examples/hn/.snyk new file mode 100644 index 0000000000000..94ac72a8dce5a --- /dev/null +++ b/examples/hn/.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: + - gatsby > gatsby-cli > gatsby-telemetry > lodash: + patched: '2020-05-21T08:09:19.709Z' + - gatsby > gatsby-cli > gatsby-recipes > gatsby-telemetry > lodash: + patched: '2020-05-21T08:09:19.709Z' diff --git a/examples/hn/package.json b/examples/hn/package.json index 9467a37b9d77c..6eaeef3c39f8e 100644 --- a/examples/hn/package.json +++ b/examples/hn/package.json @@ -13,13 +13,19 @@ "gatsby-plugin-offline": "latest", "gatsby-source-hacker-news": "latest", "lodash": "^4.16.4", - "slash": "^1.0.0" + "slash": "^1.0.0", + "snyk": "^1.323.1" }, - "keywords": ["gatsby"], + "keywords": [ + "gatsby" + ], "license": "MIT", "main": "n/a", "scripts": { "develop": "gatsby develop", - "build": "gatsby build" - } + "build": "gatsby build", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }