From 4b292933620c9a1db7ec384eddaffab484ca5dda Mon Sep 17 00:00:00 2001 From: Kay Agahd Date: Thu, 13 Oct 2022 09:53:31 +0200 Subject: [PATCH] fix(check_extra77): Add missing check_resource_id to the report (#1402) --- checks/check_extra77 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checks/check_extra77 b/checks/check_extra77 index 4971d243b4..adcf2cdd93 100644 --- a/checks/check_extra77 +++ b/checks/check_extra77 @@ -55,7 +55,7 @@ extra77(){ # check if the policy has Principal as * CHECK_ECR_REPO_ALLUSERS_POLICY=$(cat $TEMP_POLICY_FILE | jq '.Statement[]|select(.Effect=="Allow" and (((.Principal|type == "object") and .Principal.AWS == "*") or ((.Principal|type == "string") and .Principal == "*")))') if [[ $CHECK_ECR_REPO_ALLUSERS_POLICY ]]; then - textFail "$regx: $repo policy \"may\" allow Anonymous users to perform actions (Principal: \"*\")" "$regx" + textFail "$regx: $repo policy \"may\" allow Anonymous users to perform actions (Principal: \"*\")" "$regx" "$repo" else textPass "$regx: $repo is not open" "$regx" "$repo" fi