Constant monitoring and instant removal of any Outside Collaborators added to your Organization.
org-settings
and in it a file .github/remove-outside-collaborators.yml
as described in the How it Works section to configure settings (and override defaults)By default when an Outside Collaborator is added to a Repository, an Issue will be created in the Repository with a warning that a Collaborator was added. [Monitor-Only mode is enabled by default].
A .github/remove-outside-collaborators.yml
file in the Repository org-settings
is recommended to override the default settings. This Repository will contain global settings for the Organization. You can name the settings Repository anything you'd like, org-settings
is just the default.
# Configuration for Remove-Outside-Collaborators
# Turn on Monitor Mode [SET ON BY DEFAULT]. In this mode Collaborators are not removed, only an Issue is created
monitorOnly: true
# Enables detection and removal of any Outside Collaborator being added to the assigned repositories
enableCollaboratorRemoval: true
# Issue Title when an Outside Collaborator is added
removedIssueTitle: '[CRITICAL] An Outside Collaborator has been added to this Repository!'
# Issue Body when an Outside Collaborator is added
removedIssueBody: 'NOTE: Outside Collaborators are disabled for this organization! <br/> This member has been removed. Please contact an admin to override.'
# Issue Title when monitor mode is enabled
monitorIssueTitle: '[CRITICAL] Outside Collaborator Added'
# Issue Body when monitor mode is enable
monitorIssueBody: 'Please note that the adding of Outside Collaborators is prohibited!'
# Users/Groups that should be cc'ed on the issue. Should be users/groups separated by a space.
# ccList: '@user123 @user456'
# Collaborators to exclude in detection. Should be a List of Strings.
# excludeCollaborators: ['user1', 'user2']
When setting this up you can also set a number of Environment Variables
Possible Environment Variables:
.github/remove-outside-collaborators.yml
] - Sets the location/file name of the config yml fileorg-settings
] - Set the repo where to find the config yml filewith by the Octotask community