1.0.1 • Published 2 years ago

manage-collaborators-action v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Manage Collaborators Action

Check Dist/ CodeQL Publish


This GitHub action adds and removes multiple users from multiple repositories.

If a user is already part of the repository, running it again with a different permission will change the permission of the user.

A user will be removed from the repository regardless whether the user accepted the invitation. A pending invitation will be cancelled.


Inputs

NAMEDESCRIPTIONTYPEREQUIREDDEFAULT
tokenA GitHub token with access to the target repositoriesstringtrueN/A
usersComma-separated GitHub slug of users to provide access to.stringtrueN/A
repositoriesComma-separated GitHub slug of repositories to provide access to (format /<repo_name>).stringtrueN/A
actionThe action to perform. Add or Remove.stringtrueN/A
roleRole of the user in the repository. Only required if action is add.stringfalseN/A

Usage example

Add the following snippet to an existing workflow file:

- name: Run Manager Collaborators Action
  id: manager-collaborators-action
  uses: gateixeira/manage-collaborators-action@main
  with:
    token: ${{ secrets.GITHUB_TOKEN }}
    repositories: owner/repo1,owner/repo2
    users: user1,user2
    role: push
    action: add