mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
Add right region to CSV if access is denied (#1045)
This commit is contained in:
@@ -36,7 +36,7 @@ extra765(){
|
||||
for region in $REGIONS; do
|
||||
LIST_ECR_REPOS=$($AWSCLI ecr describe-repositories $PROFILE_OPT --region $region --query "repositories[*].[repositoryName]" --output text 2>&1)
|
||||
if [[ $(echo "$LIST_ECR_REPOS" | grep AccessDenied) ]]; then
|
||||
textInfo "$region: Access Denied Trying to describe ECR repositories"
|
||||
textInfo "$region: Access Denied Trying to describe ECR repositories" "$region"
|
||||
continue
|
||||
fi
|
||||
if [[ ! -z "$LIST_ECR_REPOS" ]]; then
|
||||
|
||||
@@ -42,7 +42,7 @@ extra776(){
|
||||
for region in $REGIONS; do
|
||||
LIST_ECR_REPOS=$($AWSCLI ecr describe-repositories $PROFILE_OPT --region $region --query "repositories[*].[repositoryName]" --output text 2>&1)
|
||||
if [[ $(echo "$LIST_ECR_REPOS" | grep AccessDenied) ]]; then
|
||||
textInfo "$region: Access Denied trying to describe ECR repositories"
|
||||
textInfo "$region: Access Denied trying to describe ECR repositories" "$region"
|
||||
continue
|
||||
fi
|
||||
if [[ ! -z "$LIST_ECR_REPOS" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user