From b345a2e2dca54598dd5c54c7f35654625bfaf09f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Bl=C3=A4cker?= Date: Tue, 3 Sep 2024 09:38:01 +0700 Subject: [PATCH] test --- .github/workflows/protectAuditorsGroup.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/protectAuditorsGroup.yml b/.github/workflows/protectAuditorsGroup.yml index a71fd8ac0..ec90021a6 100644 --- a/.github/workflows/protectAuditorsGroup.yml +++ b/.github/workflows/protectAuditorsGroup.yml @@ -64,16 +64,19 @@ jobs: echo "Checking for git users that are members of both $SC_ADMINS and $AUDITORS team..." OVERLAP=$(comm -12 sc_admins_sorted.txt auditors_sorted.txt) + echo "OVERLAP: $OVERLAP" + if [ -n "$OVERLAP" ]; then - echo -e "\033[31mERROR: The following git users are members of both $SC_ADMINS and $AUDITORS groups: $overlap\033[0m" - echo -e "\033[31mAuditors must be external personnel and cannot be team members or admins\033[0m" - exit 1 + echo -e "\033[31mERROR: The following git users are members of both $SC_ADMINS and $AUDITORS groups: $overlap\033[0m" + echo -e "\033[31mAuditors must be external personnel and cannot be team members or admins\033[0m" + exit 1 else - echo -e "\033[32mNo overlap found between $SC_ADMINS and $AUDITORS.\033[0m" + echo -e "\033[32mNo overlap found between $SC_ADMINS and $AUDITORS.\033[0m" fi echo "Checking for git users that are members of both $SC_CORE and $AUDITORS team..." OVERLAP=$(comm -12 sc_admins_sorted.txt auditors_sorted.txt) + echo "OVERLAP: $OVERLAP" if [ -n "$OVERLAP" ]; then echo -e "\033[31mERROR: The following git users are members of both $SC_CORE and $AUDITORS groups: $overlap\033[0m"