We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e869716 commit 5b16ca8Copy full SHA for 5b16ca8
1 file changed
ci/ci.py
@@ -454,7 +454,8 @@ def generate_sbom(self, tag:str) -> str:
454
"""
455
start_time = time.time()
456
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}",
+ 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,
459
detach=True, volumes={"/var/run/docker.sock": {"bind": "/var/run/docker.sock", "mode": "rw"}})
460
self.logger.info("Creating SBOM package list on %s with syft version %s",tag,self.syft_image_tag)
461
test = "Create SBOM"
0 commit comments