diff --git a/packages/gatsby-source-drupal/.snyk b/packages/gatsby-source-drupal/.snyk new file mode 100644 index 0000000000000..6e26d5cca5cf6 --- /dev/null +++ b/packages/gatsby-source-drupal/.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: + - lodash: + patched: '2020-05-01T04:10:57.728Z' diff --git a/packages/gatsby-source-drupal/package.json b/packages/gatsby-source-drupal/package.json index e451670aad8c7..7d92a3f0c55eb 100644 --- a/packages/gatsby-source-drupal/package.json +++ b/packages/gatsby-source-drupal/package.json @@ -11,7 +11,8 @@ "axios": "^0.18.0", "bluebird": "^3.5.0", "gatsby-source-filesystem": "^2.0.9", - "lodash": "^4.17.10" + "lodash": "^4.17.10", + "snyk": "^1.316.1" }, "devDependencies": { "@babel/cli": "^7.0.0", @@ -32,8 +33,10 @@ "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-drupal", "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 }