diff --git a/packages/gatsby-source-wordpress/.snyk b/packages/gatsby-source-wordpress/.snyk new file mode 100644 index 0000000000000..f2cea1718b0c9 --- /dev/null +++ b/packages/gatsby-source-wordpress/.snyk @@ -0,0 +1,12 @@ +# 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: + - lodash: + patched: '2020-05-01T04:33:27.004Z' + - deep-map > lodash: + patched: '2020-05-01T04:33:27.004Z' + - deep-map-keys > lodash: + patched: '2020-05-01T04:33:27.004Z' diff --git a/packages/gatsby-source-wordpress/package.json b/packages/gatsby-source-wordpress/package.json index 3b87a00d2592d..7a0d90a7d23f2 100644 --- a/packages/gatsby-source-wordpress/package.json +++ b/packages/gatsby-source-wordpress/package.json @@ -18,7 +18,8 @@ "json-stringify-safe": "^5.0.1", "lodash": "^4.17.10", "minimatch": "^3.0.4", - "qs": "^6.4.0" + "qs": "^6.4.0", + "snyk": "^1.316.1" }, "deprecated": false, "devDependencies": { @@ -39,8 +40,10 @@ "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-wordpress", "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", - "prepare": "cross-env NODE_ENV=production npm run build", - "watch": "babel -w src --out-dir . --ignore **/__tests__" + "prepare": "npm run snyk-protect && cross-env NODE_ENV=production npm run build", + "watch": "babel -w src --out-dir . --ignore **/__tests__", + "snyk-protect": "snyk protect" }, - "gitHead": "5bd5aebe066b9875354a81a4b9ed98722731c465" + "gitHead": "5bd5aebe066b9875354a81a4b9ed98722731c465", + "snyk": true }