Skip to content

feat: Allow OrganizationRole bypass actor type in rulesets - #3681

Open
marcencov wants to merge 1 commit into
integrations:mainfrom
marcencov:fix/ruleset-organization-role-bypass-actor
Open

marcencov wants to merge 1 commit into
integrations:mainfrom
marcencov:fix/ruleset-organization-role-bypass-actor

Conversation

@marcencov

Copy link
Copy Markdown

Resolves #3674


Before the change?

  • github_repository_ruleset and github_organization_ruleset rejected actor_type = "OrganizationRole" in bypass_actors, failing with expected actor_type to be one of [...].
  • Rulesets with custom organization roles in the bypass list (for example ones configured in the UI) could not be managed: Terraform planned to remove the bypass actor and could not add it back.

After the change?

  • OrganizationRole is accepted as a bypass actor type in both resources. actor_id is the organization role ID (for example github_organization_role.x.role_id).
  • The docs list OrganizationRole as a valid value.
  • Acceptance tests added for both resources: each creates a custom organization role and uses it as a bypass actor. They require an Enterprise organization and have not been run against GitHub yet; unit tests pass.

Pull request checklist

  • Schema migrations have been created if needed (example)
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

🤖 Generated with Claude Code

GitHub returns `OrganizationRole` for custom organization roles in
ruleset bypass actors, but the schema validation rejected it, so such
rulesets could not be managed.

Resolves integrations#3674

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the Type: Bug Something isn't working as documented label Oct 15, 2026
@github-actions

Copy link
Copy Markdown

👋 Hi, and thank you for this contribution!

This repo is maintained by GitHub and community members on a best-effort basis. We'll get to this as soon as we can.

You can help us prioritize by joining the discussion on open issues and PRs, sharing details on the changes you need, and reviewing other contributions.


🤖 This is an automated message.

@marcencov marcencov changed the title fix: Allow OrganizationRole bypass actor type in rulesets feat: Allow OrganizationRole bypass actor type in rulesets Oct 15, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug Something isn't working as documented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT]: Add ruleset bypass actor type OrganizationRole

2 participants