Skip to content

Commit

Permalink
adapt comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kagahd committed Jul 24, 2024
1 parent b51e9de commit f59f6a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prowler/providers/aws/services/ecr/ecr_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def is_artifact_scannable(artifact_media_type, tags):
if artifact_media_type is None:
return False

# Check if any of the tags indicate non-scannability
# Check if any of the tags indicate non-scannability, e.g. GoogleContainerTools/jib tags signatures accordingly
for tag in tags:
if tag.startswith("sha256-") and tag.endswith(".sig"):
return False
Expand All @@ -135,7 +135,7 @@ def is_artifact_scannable(artifact_media_type, tags):
"application/vnd.docker.container.image.v1+json", # Docker image configuration
"application/vnd.docker.image.rootfs.diff.tar", # Docker image layer as a tar archive
"application/vnd.docker.image.rootfs.diff.tar.gzip" # Docker image layer that is compressed using gzip
"application/vnd.oci.image.config.v1+json", # OCI image configuration, ArtefactType aber auch für .sig
"application/vnd.oci.image.config.v1+json", # OCI image configuration, but also used by GoogleContainerTools/jib for signatures
"application/vnd.oci.image.layer.v1.tar", # Uncompressed OCI image layer
"application/vnd.oci.image.layer.v1.tar+gzip", # Compressed OCI image layer
]
Expand Down

0 comments on commit f59f6a2

Please sign in to comment.