diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..d8261d9 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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: + - lodash: + patched: '2020-05-01T06:07:48.702Z' + - googleapis > request > form-data > async > lodash: + patched: '2020-05-01T06:07:48.702Z' + - googleapis > google-auth-library > request > form-data > async > lodash: + patched: '2020-05-01T06:07:48.702Z' diff --git a/package.json b/package.json index e55b27e..e6ef979 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,9 @@ "repository": "addyosmani/psi", "license": "Apache-2.0", "scripts": { - "test": "xo && mocha" + "test": "xo && mocha", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "files": [ "cli.js", @@ -45,7 +47,8 @@ "pretty-bytes": "^3.0.1", "repeating": "^2.0.0", "sort-on": "^1.2.2", - "update-notifier": "^0.6.0" + "update-notifier": "^0.6.0", + "snyk": "^1.316.1" }, "devDependencies": { "mocha": "^2.3.3", @@ -53,5 +56,6 @@ }, "xo": { "space": true - } + }, + "snyk": true }