Skip to content

[FEAT]: Support EnterpriseOwner actor_type #3210

@jackmtpt

Description

@jackmtpt

Describe the need

I want to configure rulesets in my org that's part of an enterprise such that the Enterprise Owner role can bypass them if needed. In the UI this is possible, and when I wrote a terraform resource to represent that ruleset and imported it, the bypass_actors block appears as follows:

- bypass_actors {
          - actor_id    = 0 -> null
          - actor_type  = "EnterpriseOwner" -> null
          - bypass_mode = "always" -> null
        }

that output is from terraform plan trying to remove it - I wanted to see exactly how the values would appear to terraform to then create the matching config.

However this is not possible - the actor_type property doesn't support EnterpriseOwner:

Error: expected actor_type to be one of ["Integration" "OrganizationAdmin" "RepositoryRole" "Team" "DeployKey"], got EnterpriseOwner

Hopefully it's a simple enough fix to allow this extra value.

SDK Version

No response

API Version

No response

Relevant log output

Error: expected actor_type to be one of ["Integration" "OrganizationAdmin" "RepositoryRole" "Team" "DeployKey"], got EnterpriseOwner

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: FeatureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions