diff --git a/.snyk b/.snyk index ccc04e1..e8bc489 100644 --- a/.snyk +++ b/.snyk @@ -1,9 +1,13 @@ # Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. -version: v1.11.0 +version: v1.13.5 # ignores vulnerabilities until expiry date; change duration by modifying expiry date ignore: 'npm:lodash:20180130': - caporal > cli-table2 > lodash: reason: wontfix expires: '2019-06-01T21:27:41.071Z' -patch: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-HTTPSPROXYAGENT-469131: + - '@octokit/rest > https-proxy-agent': + patched: '2019-10-04T08:37:25.227Z' diff --git a/package.json b/package.json index b00ac6b..8f4dc20 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,9 @@ "ghu": "./index.js" }, "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -28,10 +30,12 @@ "homepage": "https://github.com/pandoraboxchain/github-utils#readme", "dependencies": { "@octokit/rest": "^15.6.1", - "caporal": "^0.10.0" + "caporal": "^0.10.0", + "snyk": "^1.230.5" }, "devDependencies": { "eslint": "^4.19.1" }, - "license": "MIT" + "license": "MIT", + "snyk": true }