Skip to content

Commit 2fc439e

Browse files
committed
Pin syft to 1.26.1 due to permissions changes
1 parent 8b2bc63 commit 2fc439e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ci/ci.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def __init__(self) -> None:
127127
Docker Engine Version: '{self.get_docker_engine_version()}'
128128
""")
129129
self.logger.info(env_data)
130-
130+
131131
def get_docker_engine_version(self) -> str:
132132
"""Get the Docker Engine version
133133
@@ -452,7 +452,7 @@ def generate_sbom(self, tag:str) -> str:
452452
"""
453453
start_time = time.time()
454454
platform: str = self.get_platform(tag)
455-
syft:Container = self.client.containers.run(image="ghcr.io/anchore/syft:latest",command=f"{self.image}:{tag} --platform=linux/{platform}",
455+
syft:Container = self.client.containers.run(image="ghcr.io/anchore/syft:v1.26.1",command=f"{self.image}:{tag} --platform=linux/{platform}",
456456
detach=True, volumes={"/var/run/docker.sock": {"bind": "/var/run/docker.sock", "mode": "rw"}})
457457
self.logger.info("Creating SBOM package list on %s",tag)
458458
test = "Create SBOM"
@@ -536,7 +536,7 @@ def get_build_url(self, tag) -> str:
536536
537537
Args:
538538
tag (str): The tag we are testing
539-
539+
540540
Returns:
541541
dict: Returns a dictionary with the build url and container name
542542
"""
@@ -722,9 +722,9 @@ def create_html_ansi_file(self, blob:str, tag:str, name:str, full:bool = True) -
722722
@testing
723723
def upload_file(self, file_path:str, object_name:str, content_type:dict) -> None:
724724
"""Upload a file to an S3 bucket.
725-
725+
726726
The file is uploaded to two directories in the bucket, one for the meta tag and one for the release tag.
727-
727+
728728
e.g. `https://ci-tests.linuxserver.io/linuxserver/plex/1.40.5.8921-836b34c27-ls233/index.html` and `https://ci-tests.linuxserver.io/linuxserver/plex/latest/index.html`
729729
730730
Args:
@@ -786,7 +786,7 @@ def take_screenshot(self, container: Container, tag:str) -> bool:
786786
Args:
787787
container (Container): Container object
788788
tag (str): The container tag we are testing.
789-
789+
790790
Returns:
791791
bool: Return True if the screenshot was successful, otherwise False.
792792
"""
@@ -926,7 +926,7 @@ def create_s3_client(self) -> boto3.client:
926926
aws_access_key_id=self.s3_key,
927927
aws_secret_access_key=self.s3_secret)
928928
return s3_client
929-
929+
930930
def create_docker_client(self) -> DockerClient|None:
931931
"""Create and return a docker client object
932932
@@ -937,7 +937,7 @@ def create_docker_client(self) -> DockerClient|None:
937937
return docker.from_env()
938938
except Exception:
939939
self.logger.error("Failed to create Docker client!")
940-
940+
941941

942942
class CIError(Exception):
943943
pass

0 commit comments

Comments
 (0)