From cb5cab3e01ea97b1d84e67c3edb40137c62218b3 Mon Sep 17 00:00:00 2001 From: Pehesi97 Date: Fri, 10 Mar 2023 02:07:55 -0300 Subject: [PATCH] fix: curl silent and apps array --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 83c9f70..5ee2666 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -149,7 +149,7 @@ for repository in "${REPOSITORIES[@]}"; do }, restrictions:{ users:[""], - apps:null, + apps:[""], teams:[$restrictPushesTeamAllowed] } }' \ @@ -158,7 +158,7 @@ for repository in "${REPOSITORIES[@]}"; do -H "Accept: application/vnd.github.luke-cage-preview+json" \ -H "Content-Type: application/json" \ -u ${USERNAME}:${GITHUB_TOKEN} \ - --verbose \ + --silent \ ${GITHUB_API_URL}/repos/${repository}/branches/${BRANCH_PROTECTION_NAME}/protection elif [ "$BRANCH_PROTECTION_ENABLED" == "false" ]; then curl \