Skip to content

Commit a3b1aee

Browse files
committed
revert to previous logic
1 parent 98d0507 commit a3b1aee

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ci/ci.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,7 @@ def generate_sbom(self, tag:str) -> str:
454454
"""
455455
start_time = time.time()
456456
platform: str = self.get_platform(tag)
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,
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}",
459458
detach=True, volumes={"/var/run/docker.sock": {"bind": "/var/run/docker.sock", "mode": "rw"}})
460459
self.logger.info("Creating SBOM package list on %s with syft version %s",tag,self.syft_image_tag)
461460
test = "Create SBOM"

0 commit comments

Comments
 (0)