teams section grants teams access to repositories with specific permissions. Teams must exist in the organization, or Safe Settings will create them.
Basic Configuration
The name (slug) of the team. If the team doesn’t exist, Safe Settings will create it.
The permission to grant the team. Can be one of:
pull- Can pull, but not push to or administer this repositorypush- Can pull and push, but not administer this repositoryadmin- Can pull, push and administer this repository
Team Creation
The privacy level when creating a new team. Only used when the team doesn’t exist yet. Can be:
secret(default) - Only visible to organization owners and team membersclosed- Visible to all members of the organization
Include/Exclude Patterns
You can useinclude and exclude lists to control which repositories a team has access to. This is particularly useful for organization-level settings.
List of repository names where this team should have access. When specified, the team will only have access to these repositories.
List of repository names where this team should not have access. The team will have access to all other repositories in the organization.
Security Manager Teams
Safe Settings automatically excludes teams with the “Security Manager” role from being managed. Security manager teams have special organization-wide permissions and should not be managed through repository-level settings.Complete Examples
Basic Team Access
Team with Visibility Setting
Organization-Level with Include
Organization-Level with Exclude
How Include/Exclude Works
- Include: When specified, creates an allowlist. The team will only have access to repositories in the include list.
- Exclude: When specified, creates a denylist. The team will have access to all repositories except those in the exclude list.
- Neither: When neither is specified, the team configuration applies to the current repository (repo-level settings) or all repositories (org-level settings).
- Both: You should not specify both
includeandexcludefor the same team.