File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed
internal/services/realtimeengine/iacrealtime Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,13 @@ 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- Severity string `json:"Severity"`
10- FilePath string `json:"FilePath"`
11- Locations []realtimeengine.Location `json:"Locations"`
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"`
1213}
1314
1415type IgnoredIacFinding struct {
Original file line number Diff line number Diff line change @@ -37,11 +37,12 @@ func (m *Mapper) ConvertKicsToIacResults(
3737 lineIndex := m .getOrComputeLineIndex (fileContent , locLine , indexMap )
3838
3939 iacResult := IacRealtimeResult {
40- Title : result .QueryName ,
41- Description : result .Description ,
42- Severity : m .mapSeverity (result .Severity ),
43- FilePath : filePath ,
44- SimilarityID : loc .SimilarityID ,
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 ,
4546 Locations : []realtimeengine.Location {
4647 {
4748 Line : locLine ,
You can’t perform that action at this time.
0 commit comments