MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / HasHighOrAbove

Method HasHighOrAbove

pkg/sql/security/scanner.go:1171–1173  ·  view source on GitHub ↗

HasHighOrAbove returns true if any HIGH or CRITICAL severity findings exist. Use this to check for issues that require security review before deployment. Example: if results.HasHighOrAbove() { fmt.Println("WARNING: High-priority security issues require review") // Trigger security team

()

Source from the content-addressed store, hash-verified

1169// // Trigger security team notification
1170// }
1171func (r *ScanResult) HasHighOrAbove() bool {
1172 return r.CriticalCount > 0 || r.HighCount > 0
1173}
1174
1175// IsClean returns true if no findings of any severity level exist.
1176// A clean result indicates no security issues were detected.

Callers 3

TestScanResult_MethodsFunction · 0.95
securityScanInternalFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestScanResult_MethodsFunction · 0.76