diff --git a/examples/using-local-plugins/plugins/gatsby-source-pokeapi/.snyk b/examples/using-local-plugins/plugins/gatsby-source-pokeapi/.snyk new file mode 100644 index 0000000000000..c26f55318b083 --- /dev/null +++ b/examples/using-local-plugins/plugins/gatsby-source-pokeapi/.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-node-helpers > lodash: + patched: '2020-05-01T08:56:19.129Z' diff --git a/examples/using-local-plugins/plugins/gatsby-source-pokeapi/package.json b/examples/using-local-plugins/plugins/gatsby-source-pokeapi/package.json index 8306f74859648..26e6bcc0122e7 100755 --- a/examples/using-local-plugins/plugins/gatsby-source-pokeapi/package.json +++ b/examples/using-local-plugins/plugins/gatsby-source-pokeapi/package.json @@ -4,11 +4,15 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "", "license": "ISC", "dependencies": { - "gatsby-node-helpers": "^0.3.0" - } + "gatsby-node-helpers": "^0.3.0", + "snyk": "^1.316.1" + }, + "snyk": true }