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 b6061e6 commit 20fc702
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/commands/predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ 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] && severity == "CRITICAL" {
return errors.Errorf("%s", "Critical severity is not available for your tenant")
if !wrappers.FeatureFlags[wrappers.CVSSV3Enabled] && strings.ToLower(severity) == "critical" {
return errors.Errorf("%s", "Critical severity is not available for your tenant.This severity status will be enabled shortly")
}
predicate := &wrappers.PredicateRequest{
SimilarityID: similarityID,
Expand Down

0 comments on commit 20fc702

Please sign in to comment.