@@ -77,6 +77,12 @@ resource "github_organization_ruleset" "test" {
7777 bypass_mode = "always"
7878 }
7979
80+ bypass_actors {
81+ actor_id = 0
82+ actor_type = "EnterpriseOwner"
83+ bypass_mode = "always"
84+ }
85+
8086 conditions {
8187 repository_name {
8288 include = ["~ALL"]
@@ -170,6 +176,9 @@ resource "github_organization_ruleset" "test" {
170176 resource .TestCheckResourceAttr ("github_organization_ruleset.test" , "bypass_actors.2.actor_id" , "1" ),
171177 resource .TestCheckResourceAttr ("github_organization_ruleset.test" , "bypass_actors.2.actor_type" , "OrganizationAdmin" ),
172178 resource .TestCheckResourceAttr ("github_organization_ruleset.test" , "bypass_actors.2.bypass_mode" , "always" ),
179+ resource .TestCheckResourceAttr ("github_organization_ruleset.test" , "bypass_actors.3.actor_id" , "0" ),
180+ resource .TestCheckResourceAttr ("github_organization_ruleset.test" , "bypass_actors.3.actor_type" , "EnterpriseOwner" ),
181+ resource .TestCheckResourceAttr ("github_organization_ruleset.test" , "bypass_actors.3.bypass_mode" , "always" ),
173182 resource .TestCheckResourceAttr ("github_organization_ruleset.test" , "rules.0.pull_request.0.allowed_merge_methods.#" , "3" ),
174183 resource .TestCheckResourceAttr ("github_organization_ruleset.test" , "rules.0.required_workflows.0.do_not_enforce_on_create" , "true" ),
175184 resource .TestCheckResourceAttr ("github_organization_ruleset.test" , "rules.0.required_workflows.0.required_workflow.0.path" , workflowFilePath ),
0 commit comments