File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ class SBOMFile:
139139
140140 def __post_init__ (self ) -> None :
141141 """Validate file exists after initialization."""
142+ # Ensure path is a Path object
143+ if isinstance (self .path , str ):
144+ self .path = Path (self .path )
145+
142146 if not self .path .exists ():
143147 raise FileNotFoundError (f"SBOM file not found: { self .path } " )
144148
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def _handle_multiple_sbom_upload(
4747 UploadError: If all uploads fail
4848 """
4949 results = services .sbom_service .upload_multiple_sboms (
50- sbom_files , config .project_name , config .project_version
50+ [ sbom_file . path for sbom_file in sbom_files ] , config .project_name , config .project_version
5151 )
5252
5353 successful = sum (1 for result in results if result .success )
You can’t perform that action at this time.
0 commit comments