File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -454,7 +454,8 @@ def generate_sbom(self, tag:str) -> str:
454454 """
455455 start_time = time .time ()
456456 platform : str = self .get_platform (tag )
457- syft :Container = self .client .containers .run (image = f"ghcr.io/anchore/syft:{ self .syft_image_tag } " ,command = f"{ self .image } :{ tag } --platform=linux/{ platform } " ,
457+ command_to_run = [f"{ self .image } :{ tag } " , f"--platform=linux/{ platform } " ]
458+ syft :Container = self .client .containers .run (image = f"ghcr.io/anchore/syft:{ self .syft_image_tag } " , command = command_to_run ,
458459 detach = True , volumes = {"/var/run/docker.sock" : {"bind" : "/var/run/docker.sock" , "mode" : "rw" }})
459460 self .logger .info ("Creating SBOM package list on %s with syft version %s" ,tag ,self .syft_image_tag )
460461 test = "Create SBOM"
You can’t perform that action at this time.
0 commit comments