Skip to content

[FEAT]: Support EnterpriseOwner actor_type #3210

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

Activity

  1. added
    Type: Feature
    Status: Triage
    on Feb 20, 2026
  2. github-actions commented on Feb 20, 2026

    @github-actions

    👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

  3. added this to the v6.13.0 milestone on Jun 3, 2026
  4. nitinjain999 commented on Jun 11, 2026

    @nitinjain999
    Contributor

    PR #3487 picks this up from where @jackmtpt left off. It adds EnterpriseOwner to the actor_type allowlist for both github_organization_ruleset and github_repository_ruleset, updates docs and tests, and is now rebased on current main (the old website/docs/ path no longer exists).

  5. removed this from the v6.13.0 milestone on Jun 24, 2026
  6. added a commit that references this issue on Jun 29, 2026
    63348ea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageType: FeaturevNext

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions