From 33eaa512ec4d385364c60f62e82ffd6ff31de993 Mon Sep 17 00:00:00 2001 From: rcerven Date: Thu, 21 Mar 2024 15:10:11 +0100 Subject: [PATCH] Remove signatures during cleanup as well (#98) Signed-off-by: Robert Cerven --- config/registry_image_pruner/image_pruner/prune_images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/registry_image_pruner/image_pruner/prune_images.py b/config/registry_image_pruner/image_pruner/prune_images.py index 954f36a..4be6446 100644 --- a/config/registry_image_pruner/image_pruner/prune_images.py +++ b/config/registry_image_pruner/image_pruner/prune_images.py @@ -48,7 +48,7 @@ def delete_image_tag(quay_token: str, namespace: str, name: str, tag: str) -> No def remove_tags(tags: Dict[str, Any], quay_token: str, namespace: str, name: str, dry_run: bool = False) -> None: image_digests = [image["manifest_digest"] for image in tags.values()] - tag_regex = re.compile(r"^sha256-([0-9a-f]+)(\.sbom|\.att|\.src)$") + tag_regex = re.compile(r"^sha256-([0-9a-f]+)(\.sbom|\.att|\.src|\.sig)$") for tag in tags: # attestation or sbom image if (match := tag_regex.match(tag)) is not None: