krz/octosentry
macOS menu bar app to monitor GitHub security alerts
clone: git clone https://gitbay.org/krz/octosentry.git
e99a9b48543fee0773ede87742af0bc2be607407
unsigned
author: Christian Cleberg <hello@cleberg.net> · 2026-08-08T20:32:25Z
octosentry/SeverityMapping.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) @@ -44,9 +44,6 @@ nonisolated enum SeverityMapping { /// Secret scanning has no native severity field. Per spec: validated/active /// secrets are treated as critical, unvalidated ones as high. static func secretScanning(validity: String?) -> SecurityEventSeverity { - switch validity?.lowercased() { - case "active": .critical - default: .high - } + validity?.lowercased() == "active" ? .critical : .high } }