diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..616d22a --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# 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: + - tc-core-library-js > lodash: + patched: '2022-03-26T02:37:35.631Z' + - tc-bus-api-wrapper > lodash: + patched: '2022-03-26T02:37:35.631Z' + - tc-bus-api-wrapper > tc-core-library-js > lodash: + patched: '2022-03-26T02:37:35.631Z' + - winston > async > lodash: + patched: '2022-03-26T02:37:35.631Z' diff --git a/package-lock.json b/package-lock.json index 1175458..d1ea292 100644 --- a/package-lock.json +++ b/package-lock.json @@ -157,6 +157,11 @@ } } }, + "@snyk/protect": { + "version": "1.883.0", + "resolved": "https://registry.npmjs.org/@snyk/protect/-/protect-1.883.0.tgz", + "integrity": "sha512-N/EqG6P/qNYWOfuZAfGS1d7yGwGY4zV7AvKtgTzdhazDt7G/mRLG6czLSWNWGEFYBiMsYRVPHdc5It3bjhmIGw==" + }, "@tootallnate/once": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", @@ -2966,9 +2971,9 @@ } }, "lodash": { - "version": "4.17.19", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz", - "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==" + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==" }, "lodash.clonedeep": { "version": "4.5.0", diff --git a/package.json b/package.json index f01beeb..46c935b 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,9 @@ "lint": "standard", "lint:fix": "standard --fix", "test": "nyc --reporter=html --reporter=text mocha test/unit/test.js --timeout=20000 --require test/common/prepare.js --exit", - "e2e": "nyc --reporter=html --reporter=text mocha test/e2e/test.js --timeout=20000 --require test/common/prepare.js --exit" + "e2e": "nyc --reporter=html --reporter=text mocha test/e2e/test.js --timeout=20000 --require test/common/prepare.js --exit", + "prepare": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "author": "TCSCODER", "license": "none", @@ -35,12 +37,13 @@ "get-parameter-names": "^0.3.0", "http-status-codes": "^1.3.0", "joi": "^14.0.0", - "lodash": "^4.17.19", + "lodash": "^4.17.20", "superagent": "^5.1.0", "tc-bus-api-wrapper": "github:topcoder-platform/tc-bus-api-wrapper", "tc-core-library-js": "appirio-tech/tc-core-library-js.git#v2.6.3", "uuid": "^8.3.1", - "winston": "^3.1.0" + "winston": "^3.1.0", + "@snyk/protect": "latest" }, "engines": { "node": "10.x" @@ -58,5 +61,6 @@ "test/unit/test.js", "test/e2e/test.js" ] - } + }, + "snyk": true }