diff --git a/Checkmarx.API/Connected Services/CxSAST OData Service/Severity.cs b/Checkmarx.API/Connected Services/CxSAST OData Service/Severity.cs index 5f87260..d9e9040 100644 --- a/Checkmarx.API/Connected Services/CxSAST OData Service/Severity.cs +++ b/Checkmarx.API/Connected Services/CxSAST OData Service/Severity.cs @@ -8,6 +8,7 @@ public enum Severity Info = 0, Low = 1, Medium = 2, - High = 3 + High = 3, + Critical = 4 } } \ No newline at end of file diff --git a/Checkmarx.API/CxClient.cs b/Checkmarx.API/CxClient.cs index 7ecf38a..d51a3bb 100644 --- a/Checkmarx.API/CxClient.cs +++ b/Checkmarx.API/CxClient.cs @@ -3818,7 +3818,8 @@ public enum Severity Info = 0, Low = 1, Medium = 2, - High = 3 + High = 3, + Critical = 4 } @@ -3876,6 +3877,8 @@ public static string toSeverityToString(int severity) return "Medium"; case 3: return "High"; + case 4: + return "Critical"; default: throw new NotImplementedException(); } @@ -3956,6 +3959,9 @@ public CxAuditWebServiceV9.FileExtension[] GetSupportedFileFormats() Dictionary dic = queryDic.GroupBy(x => x.Value).ToDictionary(x => x.Key, y => y.Count()); + if (!dic.ContainsKey(CxDataRepository.Severity.Critical)) + dic.Add(CxDataRepository.Severity.Critical, 0); + if (!dic.ContainsKey(CxDataRepository.Severity.High)) dic.Add(CxDataRepository.Severity.High, 0); diff --git a/Checkmarx.API/SAST/SASTResults.cs b/Checkmarx.API/SAST/SASTResults.cs index 2d6edf4..1b32d7c 100644 --- a/Checkmarx.API/SAST/SASTResults.cs +++ b/Checkmarx.API/SAST/SASTResults.cs @@ -14,6 +14,8 @@ public class SASTResults public int Loc { get; set; } + public uint Critical { get; set; } + public uint High { get; set; } public uint Medium { get; set; } @@ -22,6 +24,8 @@ public class SASTResults public uint Info { get; set; } + public uint CriticalToVerify { get; set; } + public uint HighToVerify { get; set; } public uint MediumToVerify { get; set; }