| Name | Version |
|---|---|
| terraform | >= 1.6 |
| github | ~> 6.0 |
| Name | Version |
|---|---|
| github | ~> 6.0 |
No modules.
| Name | Type |
|---|---|
| github_organization_ruleset.ruleset | resource |
| github_repository_ruleset.ruleset | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| bypass_actors | An object containing fields for role, team, organization admin, and integration bypass actors. Defaults to {} |
object({ |
{} |
no |
| enforcement | The enforcement level of the ruleset. Should be one of either active, evaluate or disabled. Defaults to active |
string |
"active" |
no |
| name | The name of the ruleset. | string |
n/a | yes |
| ref_name_exclusions | A list of ref names or patterns to exclude. Defaults to an empty list. If set and ruleset_type is set to organization then either repository_name_inclusions or repository_name_exclusions must be set to a list of atleast 1 string. |
list(string) |
[] |
no |
| ref_name_inclusions | A list of ref names or patterns to include. Defaults to an empty list. If set and ruleset_type is set to organization then either repository_name_inclusions or repository_name_exclusions must be set to a list of atleast 1 string. |
list(string) |
[] |
no |
| repository | The name of the repository to apply the ruleset to. Only used when ruleset_type is 'repository'. | string |
null |
no |
| repository_name_exclusions | A list of repository names or patterns to exclude. If ruleset_type is set to repository then this field is ignored. |
list(string) |
[] |
no |
| repository_name_inclusions | A list of repository names or patterns to include. If ruleset_type is set to repository then this field is ignored. |
list(string) |
[] |
no |
| rules | An object containing fields for all the rule definitions the ruleset should enforce. | object({ |
n/a | yes |
| ruleset_type | The type of rulset to make. Should be one of ether organization or repository. |
string |
n/a | yes |
| target | The target of the ruleset. Should be one of either branch or tag. |
string |
n/a | yes |
No outputs.