diff --git a/index/.snyk b/index/.snyk new file mode 100644 index 0000000..7e19c4a --- /dev/null +++ b/index/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - request-promise > request-promise-core > lodash: + patched: '2022-05-17T20:16:59.704Z' diff --git a/index/package-lock.json b/index/package-lock.json index bc72898..c5004cf 100644 --- a/index/package-lock.json +++ b/index/package-lock.json @@ -4,6 +4,11 @@ "lockfileVersion": 1, "requires": true, "dependencies": { + "@snyk/protect": { + "version": "1.931.0", + "resolved": "https://registry.npmjs.org/@snyk/protect/-/protect-1.931.0.tgz", + "integrity": "sha512-FNgtMWsAbQGpmAw8UX+HOfLcGupXEGDDKWYMQRlgZYy+DIPHb4WUYw6unt1bJCupMC/FS2rXVqqRgCMhoVgcfA==" + }, "ajv": { "version": "6.12.2", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.2.tgz", diff --git a/index/package.json b/index/package.json index 2e8712e..1a9df4b 100644 --- a/index/package.json +++ b/index/package.json @@ -4,12 +4,16 @@ "description": "this is for demo of webhook listener", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "prepare": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "author": "", "license": "MIT", "dependencies": { "request": "^2.88.2", - "request-promise": "^4.2.5" - } + "request-promise": "^4.2.5", + "@snyk/protect": "latest" + }, + "snyk": true }