agentaudit 3.9.47 → 3.9.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.mjs +4 -5
- package/package.json +1 -1
package/cli.mjs
CHANGED
|
@@ -2630,8 +2630,7 @@ async function main() {
|
|
|
2630
2630
|
}
|
|
2631
2631
|
|
|
2632
2632
|
if (hadErrors && results.length === 0) { process.exitCode = 2; return; }
|
|
2633
|
-
|
|
2634
|
-
process.exitCode = totalFindings > 0 ? 1 : 0;
|
|
2633
|
+
process.exitCode = 0;
|
|
2635
2634
|
return;
|
|
2636
2635
|
}
|
|
2637
2636
|
|
|
@@ -2644,12 +2643,12 @@ async function main() {
|
|
|
2644
2643
|
return;
|
|
2645
2644
|
}
|
|
2646
2645
|
|
|
2647
|
-
let
|
|
2646
|
+
let hasErrors = false;
|
|
2648
2647
|
for (const url of urls) {
|
|
2649
2648
|
const report = await auditRepo(url);
|
|
2650
|
-
if (report
|
|
2649
|
+
if (!report) hasErrors = true;
|
|
2651
2650
|
}
|
|
2652
|
-
process.exitCode =
|
|
2651
|
+
process.exitCode = hasErrors ? 2 : 0;
|
|
2653
2652
|
return;
|
|
2654
2653
|
}
|
|
2655
2654
|
|