A GitHub Action to add outside collaborators to a repository.
Ensure that there is a GitHub App installed on the organization that has the following permissions:
- Repository permissions: Administration (read and write), Metadata (read-only)
Add two Actions secrets to the repository with the following information:
APP_ID
: The App ID of the GitHub AppPRIVATE_KEY
: The private key of the GitHub App
Navigate to the Actions
tab, then select Add outside collaborators to a repo
from the list of workflows. Click Run workflow
and enter the following information:
Collaborators
: A comma-separated list of GitHub usernames to add as collaboratorsRepository
: The name of the repository to add collaborators toPermission
: The permission level to grant to the collaborators (read, triage, write, maintain, admin)