File tree Expand file tree Collapse file tree 2 files changed +15
-13
lines changed
internal/services/realtimeengine/iacrealtime Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,14 @@ package iacrealtime
33import "github.com/checkmarx/ast-cli/internal/services/realtimeengine"
44
55type IacRealtimeResult struct {
6- SimilarityID string `json:"SimilarityID"`
7- Title string `json:"Title"`
8- Description string `json:"Description"`
9- RemediationAdvice string `json:"RemediationAdvice"`
10- Severity string `json:"Severity"`
11- FilePath string `json:"FilePath"`
12- Locations []realtimeengine.Location `json:"Locations"`
6+ SimilarityID string `json:"SimilarityID"`
7+ Title string `json:"Title"`
8+ Description string `json:"Description"`
9+ ExpectedValue string `json:"ExpectedValue"`
10+ ActualValue string `json:"ActualValue"`
11+ Severity string `json:"Severity"`
12+ FilePath string `json:"FilePath"`
13+ Locations []realtimeengine.Location `json:"Locations"`
1314}
1415
1516type IgnoredIacFinding struct {
Original file line number Diff line number Diff line change @@ -37,12 +37,13 @@ func (m *Mapper) ConvertKicsToIacResults(
3737 lineIndex := m .getOrComputeLineIndex (fileContent , locLine , indexMap )
3838
3939 iacResult := IacRealtimeResult {
40- Title : result .QueryName ,
41- Description : result .Description ,
42- RemediationAdvice : loc .ExpectedValue ,
43- Severity : m .mapSeverity (result .Severity ),
44- FilePath : filePath ,
45- SimilarityID : loc .SimilarityID ,
40+ Title : result .QueryName ,
41+ Description : result .Description ,
42+ ExpectedValue : loc .ExpectedValue ,
43+ ActualValue : loc .ActualValue ,
44+ Severity : m .mapSeverity (result .Severity ),
45+ FilePath : filePath ,
46+ SimilarityID : loc .SimilarityID ,
4647 Locations : []realtimeengine.Location {
4748 {
4849 Line : locLine ,
You can’t perform that action at this time.
0 commit comments