A series of composite actions to simplifiy the management of GitHub Enterprise Organizations.
Adds users to an existing GitHub organization.
Required A personal access token with [admin:org]
scope.
Required The name of the organization to invite users to.
Required A comma separated list of github handles who should be made admins of the organization (e.g. tjcorr
or tjcorr,otherhandle
).
A comma separated list of team slugs to invite the user to (e.g. myteam
or myteam,otheteam
).
- name: Invite users
uses: tjcorr/gha-manage-orgs/add-users@main
with:
admin-pat: ${{ secrets.ADMIN_PAT }}
org: "myuniqueorg"
users: "tjcorr,otherhandle"
Creates a new GitHub Enterprise Organization.
Required A personal access token with [admin:enterprise,user:email,read:user]
scopes.
Required The slug of the enterprise to create the organization in.
Required The name of the organization to create (this must be globally unique).
Required A comma separated list of github handles who should be made admins of the organization (e.g. tjcorr
or tjcorr,otherhandle
).
- name: Create temporary organization
uses: tjcorr/gha-manage-orgs/create-org@main
with:
admin-pat: ${{ secrets.ADMIN_PAT }}
enterprise: "myenterprise"
org: "myuniqueorg"
admin: ${{ github.actor }}
Create a team in a GitHub organization.
Required A personal access token with [admin:org]
scope.
Required The name of the organization to invite users to.
Required The name of the team to create.
'The visibility of the team (secret or closed). Default value is closed.'
- name: Create team
uses: tjcorr/gha-manage-orgs/create-team@main
with:
admin-pat: ${{ secrets.ADMIN_PAT }}
org: "myuniqueorg"
team-name: "MyTeam"
Deletes an existing GitHub Enterprise Organization along with all contents.
Warning
⚠️ All resources within the organization will be PERMANENTLY DELETED and are not recoverable.⚠️
Required A personal access token with admin:org
scope.
Required The name of the organization to delete.
- name: Delete temporary organization
uses: tjcorr/gha-manage-orgs/delete-org@main
with:
admin-pat: ${{ secrets.ADMIN_PAT }}
org: "myuniqueorg"