@@ -522,7 +522,7 @@ func (impl *ImageScanServiceImpl) ConvertEndStepOutputAndSaveVulnerabilities(ste
522522
523523 imageScanExecutionResults := make ([]* repository.ImageScanExecutionResult , 0 , len (vulnerabilities ))
524524 for _ , vul := range vulnerabilities {
525- imageScanExecutionResult := createImageScanExecutionResultObject (executionHistoryId , vul .Name , vul .Package , tool .Id )
525+ imageScanExecutionResult := createImageScanExecutionResultObject (executionHistoryId , vul .Name , vul .Package , vul . PackageVersion , vul . FixedInVersion , tool .Id )
526526 imageScanExecutionResults = append (imageScanExecutionResults , imageScanExecutionResult )
527527 }
528528 tx , err := impl .CveStoreRepository .GetConnection ().Begin ()
@@ -740,7 +740,7 @@ func (impl *ImageScanServiceImpl) CreateScanExecutionRegistryForClairV4(vs []*cl
740740 cvesToUpdate = append (cvesToUpdate , cveStore )
741741 }
742742 }
743- imageScanExecutionResult := createImageScanExecutionResultObject (executionHistory .Id , item .Name , item .Package .Name , toolId )
743+ imageScanExecutionResult := createImageScanExecutionResultObject (executionHistory .Id , item .Name , item .Package .Name , item . Package . Version , item . FixedInVersion , toolId )
744744 imageScanExecutionResultsToBeSaved = append (imageScanExecutionResultsToBeSaved , imageScanExecutionResult )
745745 }
746746 tx , err := impl .CveStoreRepository .GetConnection ().Begin ()
@@ -803,7 +803,7 @@ func (impl *ImageScanServiceImpl) CreateScanExecutionRegistryForClairV2(vs []*cl
803803 cvesToUpdate = append (cvesToUpdate , cveStore )
804804 }
805805 }
806- imageScanExecutionResult := createImageScanExecutionResultObject (executionHistory .Id , item .Name , item .FeatureName , toolId )
806+ imageScanExecutionResult := createImageScanExecutionResultObject (executionHistory .Id , item .Name , item .FeatureName , item . FeatureVersion , item . FixedBy , toolId )
807807 imageScanExecutionResultsToBeSaved = append (imageScanExecutionResultsToBeSaved , imageScanExecutionResult )
808808 }
809809 tx , err := impl .CveStoreRepository .GetConnection ().Begin ()
0 commit comments