File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ def make_sbom(self, tag: str) -> "str|CITestResult":
568568 """
569569 start_time = time .time ()
570570 sbom : str | CITestResult = self .get_sbom_buildx_blob (tag )
571- if isinstance (sbom , str ) and sbom != CITestResult . ERROR :
571+ if isinstance (sbom , str ):
572572 packages : list [dict [str , str ]] = self .parse_buildx_sbom (sbom )
573573 formatted_table : str | CITestResult = self .format_package_table (packages = packages )
574574 if packages and formatted_table != CITestResult .ERROR :
@@ -877,7 +877,7 @@ def badge_render(self) -> None:
877877 "PASS" : "green" , "FAIL" : "red" })
878878 badge .write_badge (f"{ self .outdir } /badge.svg" , overwrite = True )
879879 with open (f"{ self .outdir } /ci-status.yml" , "w" , encoding = "utf-8" ) as file :
880- file .write (f"CI: '{ self .report_status .value } '\n " )
880+ file .write (f"CI: '{ self .report_status .value } '" )
881881 except (ValueError ,RuntimeError ,FileNotFoundError ,OSError ):
882882 self .logger .exception ("Failed to render badge file!" )
883883
You can’t perform that action at this time.
0 commit comments