Policy: GitHub > Repository > Default Branch > Name
Define the GitHub repository default branch name.
Note: The branch name must be a valid branch name in the repository.
Targets
This policy targets the following resource types:
Primary Policy
This policy is used with the following primary policy:
Controls
Setting this policy configures this control:
Policy Packs
This policy setting is used by the following policy packs:
Policy Specification
Schema Type | |
|---|---|
Default | |
Examples [YAML] | main |
Category
In Your Workspace
Developers
- tmod:@turbot/turbot#/control/categories/other
- tmod:@turbot/github#/policy/types/repositoryDefaultBranchName
- turbot graphql policy-type --id "tmod:@turbot/github#/policy/types/repositoryDefaultBranchName"
- turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/github#/policy/types/repositoryDefaultBranchName"
Get Policy TypeGet Policy Settings
Category URI
Policy Type URI
GraphQL
CLI