Skip to content

Commit f6c56e9

Browse files
Merge branch 'main' into adar-cntr-custom-images-dir-fix
2 parents 0d26130 + 8f141c2 commit f6c56e9

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

internal/services/realtimeengine/iacrealtime/config.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ package iacrealtime
33
import "github.com/checkmarx/ast-cli/internal/services/realtimeengine"
44

55
type 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

1516
type IgnoredIacFinding struct {

internal/services/realtimeengine/iacrealtime/mapper.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)