

# Review scan findings for your premium images

Amazon ECR Public uses Amazon Inspector to scan every image in a premium repository for software vulnerabilities. For more information about Amazon Inspector, see [Scanning container images with Amazon Inspector](https://docs.aws.amazon.com/inspector/latest/user/scanning-ecr.html) in the *Amazon Inspector User Guide*. Images are scanned when they're pushed and are rescanned continuously for 90 days as new vulnerabilities are published. Scanning is tracked by image digest, not by tag. If you regularly push new images to a tag such as `latest`, each push creates a new digest, so the image that the tag points to continues to be scanned. Scanning is always turned on for premium repositories. The Amazon ECR Public Gallery shows the findings and severity counts for each image tag, along with the time of the most recent scan. Images in free repositories aren't scanned.

Publishers can retrieve the findings for an image with the [**describe-image-scan-findings**](https://docs.aws.amazon.com/cli/latest/reference/ecr-public/describe-image-scan-findings.html) AWS CLI command. You can specify the image by tag or by digest.

```
aws ecr-public describe-image-scan-findings \
     --repository-name {{my-premium-app}} \
     --repository-type PREMIUM \
     --image-id imageTag={{latest}} \
     --region us-east-1
```

If a tag points to a multi-architecture image, such as a manifest list or an OCI image index, specify the digest of a platform-specific image instead. Scan findings aren't available for the index itself.

```
aws ecr-public describe-image-scan-findings \
     --repository-name {{my-premium-app}} \
     --repository-type PREMIUM \
     --image-id imageDigest={{sha256:4f70ef7a4d29e8c0c302b13e25962d8f7a0bd304EXAMPLE}} \
     --region us-east-1
```

The scan status of an image is one of the following:
+ `PENDING` – The image is waiting to be scanned.
+ `ACTIVE` – The image is scanned and is rescanned continuously as new vulnerabilities are published.
+ `UNSUPPORTED_IMAGE` – The image can't be scanned. Manifest lists and OCI image indexes return this status; scan the platform-specific images that they reference instead.
+ `SCAN_ELIGIBILITY_EXPIRED` – The 90-day continuous scanning period for the image has ended.