From a4e25abdbef318de8cfcb68ad377f45d7a2e924d Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Thu, 13 Jan 2022 13:41:51 +0200 Subject: [PATCH] test(audit): fix --- .../test/__snapshots__/index.ts.snap | 45 ++++++++++++++++--- 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/packages/plugin-commands-audit/test/__snapshots__/index.ts.snap b/packages/plugin-commands-audit/test/__snapshots__/index.ts.snap index 9dd2dfbc94..20d973d404 100644 --- a/packages/plugin-commands-audit/test/__snapshots__/index.ts.snap +++ b/packages/plugin-commands-audit/test/__snapshots__/index.ts.snap @@ -232,6 +232,17 @@ exports[`audit --audit-level 1`] = ` ├─────────────────────┼───────────────────────────────────────────────────┤ │ More info │ https://github.com/advisories/GHSA-42xw-2xvc-qx8m │ └─────────────────────┴───────────────────────────────────────────────────┘ +┌─────────────────────┬───────────────────────────────────────────────────────┐ +│ high │ Exposure of sensitive information in follow-redirects │ +├─────────────────────┼───────────────────────────────────────────────────────┤ +│ Package │ follow-redirects │ +├─────────────────────┼───────────────────────────────────────────────────────┤ +│ Vulnerable versions │ <1.14.7 │ +├─────────────────────┼───────────────────────────────────────────────────────┤ +│ Patched versions │ >=1.14.7 │ +├─────────────────────┼───────────────────────────────────────────────────────┤ +│ More info │ https://github.com/advisories/GHSA-74fj-2j2h-c42q │ +└─────────────────────┴───────────────────────────────────────────────────────┘ ┌─────────────────────┬───────────────────────────────────────────────────┐ │ moderate │ Prototype Pollution in node-jsonpointer │ ├─────────────────────┼───────────────────────────────────────────────────┤ @@ -353,8 +364,8 @@ exports[`audit --audit-level 1`] = ` ├─────────────────────┼────────────────────────────────────────────────────────┤ │ More info │ https://github.com/advisories/GHSA-29mw-wpgm-hmr9 │ └─────────────────────┴────────────────────────────────────────────────────────┘ -37 vulnerabilities found -Severity: 4 low | 12 moderate | 17 high | 4 critical" +39 vulnerabilities found +Severity: 4 low | 12 moderate | 19 high | 4 critical" `; exports[`audit --dev 1`] = ` @@ -391,6 +402,17 @@ exports[`audit --dev 1`] = ` ├─────────────────────┼───────────────────────────────────────────────────┤ │ More info │ https://github.com/advisories/GHSA-42xw-2xvc-qx8m │ └─────────────────────┴───────────────────────────────────────────────────┘ +┌─────────────────────┬───────────────────────────────────────────────────────┐ +│ high │ Exposure of sensitive information in follow-redirects │ +├─────────────────────┼───────────────────────────────────────────────────────┤ +│ Package │ follow-redirects │ +├─────────────────────┼───────────────────────────────────────────────────────┤ +│ Vulnerable versions │ <1.14.7 │ +├─────────────────────┼───────────────────────────────────────────────────────┤ +│ Patched versions │ >=1.14.7 │ +├─────────────────────┼───────────────────────────────────────────────────────┤ +│ More info │ https://github.com/advisories/GHSA-74fj-2j2h-c42q │ +└─────────────────────┴───────────────────────────────────────────────────────┘ ┌─────────────────────┬───────────────────────────────────────────────────┐ │ moderate │ Tmp files readable by other users in sync-exec │ ├─────────────────────┼───────────────────────────────────────────────────┤ @@ -402,8 +424,8 @@ exports[`audit --dev 1`] = ` ├─────────────────────┼───────────────────────────────────────────────────┤ │ More info │ https://github.com/advisories/GHSA-38h8-x697-gh8q │ └─────────────────────┴───────────────────────────────────────────────────┘ -4 vulnerabilities found -Severity: 1 moderate | 3 high" +5 vulnerabilities found +Severity: 1 moderate | 4 high" `; exports[`audit 1`] = ` @@ -638,6 +660,17 @@ exports[`audit 1`] = ` ├─────────────────────┼───────────────────────────────────────────────────┤ │ More info │ https://github.com/advisories/GHSA-42xw-2xvc-qx8m │ └─────────────────────┴───────────────────────────────────────────────────┘ +┌─────────────────────┬───────────────────────────────────────────────────────┐ +│ high │ Exposure of sensitive information in follow-redirects │ +├─────────────────────┼───────────────────────────────────────────────────────┤ +│ Package │ follow-redirects │ +├─────────────────────┼───────────────────────────────────────────────────────┤ +│ Vulnerable versions │ <1.14.7 │ +├─────────────────────┼───────────────────────────────────────────────────────┤ +│ Patched versions │ >=1.14.7 │ +├─────────────────────┼───────────────────────────────────────────────────────┤ +│ More info │ https://github.com/advisories/GHSA-74fj-2j2h-c42q │ +└─────────────────────┴───────────────────────────────────────────────────────┘ ┌─────────────────────┬───────────────────────────────────────────────────┐ │ moderate │ Prototype Pollution in node-jsonpointer │ ├─────────────────────┼───────────────────────────────────────────────────┤ @@ -803,6 +836,6 @@ exports[`audit 1`] = ` ├─────────────────────┼────────────────────────────────────────────────────────┤ │ More info │ https://github.com/advisories/GHSA-cwfw-4gq5-mrqx │ └─────────────────────┴────────────────────────────────────────────────────────┘ -37 vulnerabilities found -Severity: 4 low | 12 moderate | 17 high | 4 critical" +39 vulnerabilities found +Severity: 4 low | 12 moderate | 19 high | 4 critical" `;