diff --git a/.ci/containers/terraform-vcr-community/reverse_check_membership.sh b/.ci/containers/terraform-vcr-community/reverse_check_membership.sh index a278d1f27e8d..ec10b52697a7 100755 --- a/.ci/containers/terraform-vcr-community/reverse_check_membership.sh +++ b/.ci/containers/terraform-vcr-community/reverse_check_membership.sh @@ -13,13 +13,13 @@ if $(echo $USER | fgrep -wq -e ndmckinley -e danawillow -e emilymye -e megan07 - exit 0 else echo "Checking GCP org membership" - GCP_MEMBER=$(curl -sw '%{http_code}' -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/orgs/GoogleCloudPlatform/members/$USER -o /dev/null) + GCP_MEMBER=$(curl -Lsw '%{http_code}' -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/orgs/GoogleCloudPlatform/members/$USER -o /dev/null) if [ "$GCP_MEMBER" != "404" ]; then echo "User is a GCP org member, exiting" exit 0 else echo "Checking googlers org membership" - GOOGLERS_MEMBER=$(curl -sw '%{http_code}' -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/orgs/googlers/members/$USER -o /dev/null) + GOOGLERS_MEMBER=$(curl -Lsw '%{http_code}' -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/orgs/googlers/members/$USER -o /dev/null) if [ "$GOOGLERS_MEMBER" != "404" ]; then echo "User is a googlers org member, exiting" exit 0 @@ -30,4 +30,4 @@ else fi # Pass PR number to runner, which expects it -sh /run_vcr_tests.sh $PR_NUMBER +sh /run_vcr_tests.sh $PR_NUMBER \ No newline at end of file diff --git a/.ci/containers/terraform-vcr-tester/check_membership.sh b/.ci/containers/terraform-vcr-tester/check_membership.sh index a27050b4fabb..6eb64a20fa82 100755 --- a/.ci/containers/terraform-vcr-tester/check_membership.sh +++ b/.ci/containers/terraform-vcr-tester/check_membership.sh @@ -11,12 +11,12 @@ if $(echo $USER | fgrep -wq -e ndmckinley -e danawillow -e emilymye -e megan07 - echo "User is on the list, not skipping." else echo "Checking GCP org membership" - GCP_MEMBER=$(curl -sw '%{http_code}' -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/orgs/GoogleCloudPlatform/members/$USER -o /dev/null) + GCP_MEMBER=$(curl -Lsw '%{http_code}' -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/orgs/GoogleCloudPlatform/members/$USER -o /dev/null) if [ "$GCP_MEMBER" != "404" ]; then echo "User is a GCP org member, continuing" else echo "Checking googlers org membership" - GOOGLERS_MEMBER=$(curl -sw '%{http_code}' -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/orgs/googlers/members/$USER -o /dev/null) + GOOGLERS_MEMBER=$(curl -Lsw '%{http_code}' -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/orgs/googlers/members/$USER -o /dev/null) if [ "$GOOGLERS_MEMBER" != "404" ]; then echo "User is a googlers org member, continuing" else @@ -27,4 +27,4 @@ else fi # Pass PR number to runner, which expects it -sh /run_vcr_tests.sh $PR_NUMBER +sh /run_vcr_tests.sh $PR_NUMBER \ No newline at end of file