diff --git a/.snyk b/.snyk new file mode 100644 index 0000000000..e5987f6bf1 --- /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:tunnel-agent:20170305': + - '@semantic-release/condition-travis > travis-deploy-once > travis-ci > request > tunnel-agent': + patched: '2018-06-25T21:58:08.679Z' diff --git a/package.json b/package.json index 1405af3f32..33153799c7 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,8 @@ "require-relative": "^0.8.7", "run-auto": "^2.0.0", "run-series": "^1.1.3", - "semver": "^5.2.0" + "semver": "^5.2.0", + "snyk": "^1.85.0" }, "devDependencies": { "coveralls": "^2.11.4", @@ -85,6 +86,9 @@ "semantic-release": "./bin/semantic-release.js pre && npm publish && ./bin/semantic-release.js post", "test": "npm run test:unit && npm run test:integration", "test:integration": "tap --no-cov test/scenarios/*.js", - "test:unit": "nyc tap --no-cov test/specs/*.js" - } + "test:unit": "nyc tap --no-cov test/specs/*.js", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" + }, + "snyk": true }