set status to low when warn-only is set to true

This commit is contained in:
tgrall
2024-01-28 14:35:44 +01:00
parent d6f324d18a
commit f91404ca86
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -87,9 +87,9 @@ async function run(): Promise<void> {
scopedChanges
)
let minSeverity = config.fail_on_severity
const failOnSeverityParams = config.fail_on_severity
const warnOnly = config.warn_only
let minSeverity: Severity = 'low'
// If failOnSeverityParams is not set or warnOnly is true, the minSeverity is low, to allow all vulnerabilities to be reported as warnings
if (failOnSeverityParams && !warnOnly) {
minSeverity = failOnSeverityParams