Skip to content

Instantly share code, notes, and snippets.

View afolarin's full-sized avatar

Amos Folarin afolarin

View GitHub Profile
@afolarin
afolarin / update-all-collaborator-permissions-org.sh
Created December 19, 2024 19:24 — forked from yatharthranjan/update-all-collaborator-permissions-org.sh
A bash script for updating permissions of all the outside collaborators (not organisation members) to read for all public repositories in an organisation and remove them in case of private repositories.
#!/usr/bin/env bash
# Ask for GitHub organization name
read -p "Enter GitHub organization name: " org
# Ask for GitHub token
read -sp "Enter GitHub token: " token
echo
# Set the number of repositories to fetch per page
@afolarin
afolarin / update-all-collaborator-permissions-org.sh
Created December 19, 2024 19:24 — forked from yatharthranjan/update-all-collaborator-permissions-org.sh
A bash script for updating permissions of all the outside collaborators (not organisation members) to read for all public repositories in an organisation and remove them in case of private repositories.
#!/usr/bin/env bash
# Ask for GitHub organization name
read -p "Enter GitHub organization name: " org
# Ask for GitHub token
read -sp "Enter GitHub token: " token
echo
# Set the number of repositories to fetch per page