diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..04ba6471 --- /dev/null +++ b/.snyk @@ -0,0 +1,44 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:debug:20170905': + - aegir > mocha-jenkins-reporter > mocha > debug: + patched: '2022-05-17T08:37:20.540Z' + - interface-ipfs-core > aegir > mocha-jenkins-reporter > mocha > debug: + patched: '2022-05-17T08:37:20.540Z' + 'npm:hoek:20180212': + - aegir > karma > log4js > loggly > request > hawk > hoek: + patched: '2022-05-17T08:37:20.540Z' + - aegir > karma > log4js > loggly > request > hawk > boom > hoek: + patched: '2022-05-17T08:37:20.540Z' + - aegir > karma > log4js > loggly > request > hawk > sntp > hoek: + patched: '2022-05-17T08:37:20.540Z' + - interface-ipfs-core > aegir > karma > log4js > loggly > request > hawk > hoek: + patched: '2022-05-17T08:37:20.540Z' + - interface-ipfs-core > aegir > karma > log4js > loggly > request > hawk > boom > hoek: + patched: '2022-05-17T08:37:20.540Z' + - interface-ipfs-core > aegir > karma > log4js > loggly > request > hawk > sntp > hoek: + patched: '2022-05-17T08:37:20.540Z' + SNYK-JS-LODASH-567746: + - aegir > @commitlint/load > lodash: + patched: '2022-05-17T08:37:20.540Z' + - interface-ipfs-core > aegir > @commitlint/load > lodash: + patched: '2022-05-17T08:37:20.540Z' + - aegir > @commitlint/load > @commitlint/resolve-extends > lodash: + patched: '2022-05-17T08:37:20.540Z' + - aegir > @commitlint/lint > @commitlint/rules > @commitlint/ensure > lodash: + patched: '2022-05-17T08:37:20.540Z' + - interface-ipfs-core > aegir > @commitlint/load > @commitlint/resolve-extends > lodash: + patched: '2022-05-17T08:37:20.540Z' + - interface-ipfs-core > aegir > @commitlint/lint > @commitlint/rules > @commitlint/ensure > lodash: + patched: '2022-05-17T08:37:20.540Z' + 'npm:lodash:20180130': + - ipld > ipld-zcash > zcash-bitcore-lib > lodash: + patched: '2022-05-17T08:37:20.540Z' + 'npm:tunnel-agent:20170305': + - aegir > karma > log4js > loggly > request > tunnel-agent: + patched: '2022-05-17T08:37:20.540Z' + - interface-ipfs-core > aegir > karma > log4js > loggly > request > tunnel-agent: + patched: '2022-05-17T08:37:20.540Z' diff --git a/package.json b/package.json index 7b3aa922..bbef71e2 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,9 @@ "release-minor": "aegir release --type minor -t node -t browser", "release-major": "aegir release --type major -t node -t browser", "coverage": "aegir coverage", - "coverage-publish": "aegir-coverage publish" + "coverage-publish": "aegir-coverage publish", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "repository": { "type": "git", @@ -177,7 +179,8 @@ "update-notifier": "^2.5.0", "yargs": "^12.0.1", "yargs-parser": "^10.1.0", - "yargs-promise": "^1.1.0" + "yargs-promise": "^1.1.0", + "@snyk/protect": "latest" }, "optionalDependencies": { "prom-client": "^11.1.1", @@ -282,5 +285,6 @@ "Łukasz Magiera ", "Максим Ильин ", "ᴠɪᴄᴛᴏʀ ʙᴊᴇʟᴋʜᴏʟᴍ " - ] + ], + "snyk": true }