Skip to content

Commit

Permalink
Remove signatures during cleanup as well (#98)
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Cerven <[email protected]>
  • Loading branch information
rcerven authored Mar 21, 2024
1 parent 143d709 commit 33eaa51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/registry_image_pruner/image_pruner/prune_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 33eaa51

Please sign in to comment.