diff --git a/src/main/kotlin/com/bridgecrew/services/ResultsCacheService.kt b/src/main/kotlin/com/bridgecrew/services/ResultsCacheService.kt index 94abe2b..2547f3b 100644 --- a/src/main/kotlin/com/bridgecrew/services/ResultsCacheService.kt +++ b/src/main/kotlin/com/bridgecrew/services/ResultsCacheService.kt @@ -47,6 +47,8 @@ class ResultsCacheService(val project: Project) { fun addCheckovResultFromFileScan(newCheckovResults: List, filePath: String) { newCheckovResults.forEach { newCheckovResult -> run { + newCheckovResult.file_abs_path = fromDockerFilePath(newCheckovResult.file_abs_path) + if ( newCheckovResult.file_abs_path != filePath && filePath.contains(newCheckovResult.file_abs_path)) { newCheckovResult.file_abs_path = filePath