Skip to content

Commit 5b16ca8

Browse files
committed
bugfix
1 parent e869716 commit 5b16ca8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/ci.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)