Add daily scans and Ninja burst mode
This commit is contained in:
@@ -9,6 +9,7 @@ param(
|
||||
[string]$UploadMode = "auto",
|
||||
[string]$VulnerabilityCsvPath = "",
|
||||
[string]$MirrorRoot = "",
|
||||
[switch]$SuppressTriggerExit,
|
||||
[ValidateSet("status", "attack-only", "cve-critical", "attack-plus-cve")]
|
||||
[string]$Mode = "status"
|
||||
)
|
||||
@@ -227,8 +228,8 @@ Write-Host "Total CVEs: $totalCves"
|
||||
Write-Host "Report: $outputFullPath"
|
||||
Write-Host "Runner exit code: $runnerExitCode"
|
||||
|
||||
if ($monitorTriggered) {
|
||||
if ($monitorTriggered -and -not $SuppressTriggerExit) {
|
||||
exit 1
|
||||
}
|
||||
|
||||
exit 0
|
||||
exit $runnerExitCode
|
||||
|
||||
Reference in New Issue
Block a user