Skip to content

Commit 0da58ba

Browse files
authored
CM-41217 - Fix absolute path for local path scanning (#264)
1 parent 1c39dd1 commit 0da58ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cycode/cli/files_collector/path_documents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def _generate_document(file: str, scan_type: str, content: str, is_git_diff: boo
8484
if is_iac(scan_type) and is_tfplan_file(file, content):
8585
return _handle_tfplan_file(file, content, is_git_diff)
8686

87-
return Document(file, content, is_git_diff)
87+
return Document(file, content, is_git_diff, absolute_path=file)
8888

8989

9090
def _handle_tfplan_file(file: str, content: str, is_git_diff: bool) -> Document:

0 commit comments

Comments
 (0)