Skip to content

Commit 081282b

Browse files
Suppress IN-DISCONTINUED-001 finding in ECR image scan gate
Amazon Linux 2 reached end-of-life on June 30, 2026. Inspector2 now flags all AL2-based images with IN-DISCONTINUED-001 at CRITICAL severity, which blocks the 2.x release pipeline. This is an informational finding about the OS lifecycle status, not an exploitable vulnerability. The 2.x image line is already documented as EOL-mirroring AL2, and customers have been advised to migrate to 3.x. Add a NOT_EQUALS filter for IN-DISCONTINUED-001 to the Inspector2 list-findings call in verify_ecr_image_scan() so the 2.x maintenance builds can continue shipping until the line is formally deprecated.
1 parent ae2a64a commit 081282b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ verify_ecr_image_scan() {
741741
max_stability_attempts=10
742742
stability_attempt=0
743743
while [ $stability_attempt -lt $max_stability_attempts ]; do
744-
findings=$(aws inspector2 list-findings --max-results 1 --filter-criteria '{"ecrImageRepositoryName":[{"comparison":"EQUALS","value":"'${repo_uri}'"}],"ecrImageTags":[{"comparison":"EQUALS","value":"'${tag}'"}],"severity":[{"comparison":"EQUALS","value":"HIGH"},{"comparison":"EQUALS","value":"CRITICAL"}]}' --region ${region})
744+
findings=$(aws inspector2 list-findings --max-results 1 --filter-criteria '{"ecrImageRepositoryName":[{"comparison":"EQUALS","value":"'${repo_uri}'"}],"ecrImageTags":[{"comparison":"EQUALS","value":"'${tag}'"}],"severity":[{"comparison":"EQUALS","value":"HIGH"},{"comparison":"EQUALS","value":"CRITICAL"}],"vulnerabilityId":[{"comparison":"NOT_EQUALS","value":"IN-DISCONTINUED-001"}]}' --region ${region})
745745
vulnerability=$(echo "$findings" | jq '.findings | length')
746746
if [ $vulnerability -gt 0 ]; then
747747
echo "Uploaded image ${tag} has HIGH/CRITICAL vulnerabilities."

0 commit comments

Comments
 (0)