diff --git a/.snyk b/.snyk new file mode 100644 index 00000000000..53bf4a09edc --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - npm > cli-table2 > lodash: + patched: '2018-07-03T04:37:36.187Z' diff --git a/package.json b/package.json index f531675b8c1..9b503d21b92 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,9 @@ "prettier": "prettier \"**/*.{js,json,md}\" --write", "start": "node lib/renovate", "test-dirty": "git diff --exit-code", - "test": "yarn prettier --list-different && yarn lint && yarn jest" + "test": "yarn prettier --list-different && yarn lint && yarn jest", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "repository": { "type": "git", @@ -97,7 +99,8 @@ "traverse": "0.6.6", "upath": "1.0.4", "vso-node-api": "6.5.0", - "yarn": "1.6.0" + "yarn": "1.6.0", + "snyk": "^1.88.0" }, "devDependencies": { "babel-plugin-transform-object-rest-spread": "6.26.0", @@ -181,5 +184,6 @@ } ] } - } + }, + "snyk": true }