Skip to content

Commit

Permalink
changing critical triage message
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagobcx committed Nov 3, 2023
1 parent 20fc702 commit 74c1e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/commands/predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func runTriageUpdate(resultsPredicatesWrapper wrappers.ResultsPredicatesWrapper)
comment, _ := cmd.Flags().GetString(params.CommentFlag)
scanType, _ := cmd.Flags().GetString(params.ScanTypeFlag)
// check if the current tenant has critical severity available
if !wrappers.FeatureFlags[wrappers.CVSSV3Enabled] && strings.ToLower(severity) == "critical" {
if !wrappers.FeatureFlags[wrappers.CVSSV3Enabled] && strings.EqualFold(severity, "critical") {
return errors.Errorf("%s", "Critical severity is not available for your tenant.This severity status will be enabled shortly")
}
predicate := &wrappers.PredicateRequest{
Expand Down

0 comments on commit 74c1e58

Please sign in to comment.