diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..3d3606b --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.22.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - inquirer > lodash: + patched: '2022-03-25T18:16:20.082Z' diff --git a/package-lock.json b/package-lock.json index 06b5994..7f06d91 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2682,6 +2682,11 @@ "type-detect": "4.0.8" } }, + "@snyk/protect": { + "version": "1.883.0", + "resolved": "https://registry.npmjs.org/@snyk/protect/-/protect-1.883.0.tgz", + "integrity": "sha512-N/EqG6P/qNYWOfuZAfGS1d7yGwGY4zV7AvKtgTzdhazDt7G/mRLG6czLSWNWGEFYBiMsYRVPHdc5It3bjhmIGw==" + }, "@szmarczak/http-timer": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", diff --git a/package.json b/package.json index fedcb36..f9a0f9e 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,9 @@ "prepublishOnly": "npm run build:production", "semantic-commit": "npx commit", "semantic-release": "npx semantic-release", - "travis-deploy-once": "npx travis-deploy-once" + "travis-deploy-once": "npx travis-deploy-once", + "prepare": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "license": "MIT", "repository": { @@ -41,7 +43,8 @@ "commander": "^5.1.0", "github-languages-client": "^1.0.86", "inquirer": "^7.3.2", - "inquirer-autocomplete-prompt": "^1.0.2" + "inquirer-autocomplete-prompt": "^1.0.2", + "@snyk/protect": "latest" }, "devDependencies": { "@babel/cli": "^7.8.4", @@ -77,5 +80,6 @@ "rollup-plugin-local-resolve": "^1.0.7", "semantic-release": "^17.0.3", "travis-deploy-once": "^5.0.11" - } + }, + "snyk": true }