Skip to content

Commit

Permalink
chore: update repo link to image link
Browse files Browse the repository at this point in the history
  • Loading branch information
amohamedhey committed May 22, 2024
1 parent 9fefcc5 commit 47c8ad8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ if [[ "$(check_bool "${USE_ALPHA_REGISTRY}")" ]]; then
else
_scan_repo_name="image/${ECR_REPO_NAME}"
fi
_scan_repo_link="https://heycargroup.awsapps.com/start/#/console?account_id=${AWS_ACCOUNT_ID}&role_name=Developer&destination=https%3A%2F%2Feu-central-1.console.aws.amazon.com%2Fecr%2Frepositories%2Fprivate%2F${AWS_ACCOUNT_ID}%2F${_scan_repo_name}%3Fregion%3Deu-central-1"

_image_digest=$(aws --region "${AWS_REGION}" ecr describe-images --repository-name "${_scan_repo_name}" --image-ids imageTag="${ECR_REPO_TAG}" --query 'imageDetails[].imageDigest' --output text")
_scan_repo_link="https://heycargroup.awsapps.com/start/#/console?account_id=${AWS_ACCOUNT_ID}&role_name=Developer&destination=https%3A%2F%2F${AWS_REGION}.console.aws.amazon.com%2Fecr%2Frepositories%2Fprivate%2F${AWS_ACCOUNT_ID}%2F${_scan_repo_name}%2F_%2Fimage%2F${_image_digest}%2Fdetails%3Fregion%3D${AWS_REGION}"
log_info "Fetching scan results from ECR"
log_debug "repo=\"${_scan_repo_name}\" | imageTag=\"${ECR_REPO_TAG}\""
Expand Down

0 comments on commit 47c8ad8

Please sign in to comment.