diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..54b9a83d --- /dev/null +++ b/.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: + - ethereumjs-testrpc > webpack > async > lodash: + patched: '2020-05-01T05:45:05.005Z' diff --git a/package.json b/package.json index 1b8a3c00..2706452b 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "scripts": { "test": "truffle test", "lint": "solium --dir ./contracts", - "prepublishOnly": "truffle compile && truffle networks --clean" + "prepublishOnly": "truffle compile && truffle networks --clean", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -23,11 +25,13 @@ "eth-ens-namehash": "^1.0.2", "web3-utils": "^1.0.0-beta.31", "ethereumjs-testrpc": "^6.0.3", - "solc": "^0.4.20" + "solc": "^0.4.20", + "snyk": "^1.316.1" }, "devDependencies": { "solidity-coverage": "^0.3.5", "solium": "^1.0.4", "truffle": "^4.0.0" - } + }, + "snyk": true }