diff --git a/.github/workflows/remove-individual-access.yml b/.github/workflows/remove-individual-access.yml index 6db335ade..401400c1d 100644 --- a/.github/workflows/remove-individual-access.yml +++ b/.github/workflows/remove-individual-access.yml @@ -10,7 +10,7 @@ jobs: remove-individual-access-to-repos: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 with: path: community - name: Install yq @@ -22,7 +22,7 @@ jobs: set -e set -o pipefail - ./community/toc/working-groups/parsable-working-groups.sh | jq -r .[].areas[].repositories[] | grep -E '^cloudfoundry/' | while read -r repo; do + ./community/toc/working-groups/parsable-working-groups.sh | jq -r .[].areas[].repositories[] | grep -E '^(cloudfoundry|concourse)/' | while read -r repo; do gh api "repos/${repo}/collaborators?affiliation=direct" | jq -r .[].login | while read -r user; do echo "remove ${user} from ${repo}" gh api -X delete "/repos/${repo}/collaborators/${user}" diff --git a/toc/working-groups/parsable-working-groups.sh b/toc/working-groups/parsable-working-groups.sh index dcbc3edcb..8c75716d9 100755 --- a/toc/working-groups/parsable-working-groups.sh +++ b/toc/working-groups/parsable-working-groups.sh @@ -17,7 +17,7 @@ for group in $(ls ../*.md | grep -v -e ROLES -e CHANGEPLAN -e PRINCIPLES -e GOVE working_group_info=$(echo "${working_group_info}" | working_group_information_json="$(get_working_group_info_json $group)" yq -oj -I=0 '. + [env(working_group_information_json)]') done -for working_group in $(ls *.md | grep -v -e WORKING-GROUPS -e paketo -e vulnerability -e concourse); do +for working_group in $(ls *.md | grep -v -e WORKING-GROUPS -e paketo -e vulnerability); do working_group_info=$(echo "${working_group_info}" | working_group_information_json="$(get_working_group_info_json $working_group)" yq -oj -I=0 '. + [env(working_group_information_json)]') done