diff --git a/.snyk b/.snyk new file mode 100644 index 0000000000..d7f5717b56 --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# 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:hoek:20180212': + - '@semantic-release/condition-travis > travis-deploy-once > travis-ci > request > hawk > hoek': + patched: '2018-06-18T22:07:03.483Z' + - '@semantic-release/condition-travis > travis-deploy-once > travis-ci > request > hawk > boom > hoek': + patched: '2018-06-18T22:07:03.483Z' + - '@semantic-release/condition-travis > travis-deploy-once > travis-ci > request > hawk > sntp > hoek': + patched: '2018-06-18T22:07:03.483Z' + - '@semantic-release/condition-travis > travis-deploy-once > travis-ci > request > hawk > cryptiles > boom > hoek': + patched: '2018-06-18T22:07:03.483Z' diff --git a/package.json b/package.json index 1405af3f32..9d4f0fac35 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.83.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 }