Use this data source to retrieve a list of repository branch protection rules.
data "github_branch_protection_rules" "example" {
repository = "example"
}
The following arguments are supported:
repository
- (Required) The GitHub repository name.rules
- Collection of Branch Protection Rules. Each of the results conforms to the following scheme:
pattern
- Identifies the protection rule pattern.