Skip to content

[DOCS]: actor_id value for OrganizationAdmin is 0, not 1 #2717

Closed

Description

@tj-smith47

Describe the need

Documentation on this page incorrectly reports the actor_id value for OrganizationAdmin incorrectly. After adding a ruleset using 1, the next plan reported a bunch of replacements updating the existing value of 0 to 1. Changing this in the module to 0 made these changes go away.

SDK Version

No response

API Version

No response

Relevant log output

~ resource "github_repository_ruleset" "require_push_approval" {
      id          = "[redacted]"
      name        = "Require push approval"
      # (6 unchanged attributes hidden)

    ~ bypass_actors {
        ~ actor_id    = 0 -> [integration_id]
        ~ actor_type  = "OrganizationAdmin" -> "Integration"
          # (1 unchanged attribute hidden)
      }
    ~ bypass_actors {
        ~ actor_id    = [integration_id] -> 1
        ~ actor_type  = "Integration" -> "OrganizationAdmin"
          # (1 unchanged attribute hidden)
      }

      # (2 unchanged blocks hidden)
  }

Code of Conduct

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

Activity

  1. added
    Type: Documentation
    Status: Triage
    on Aug 6, 2025
  2. deiga commented on Nov 21, 2025

    @deiga
    Collaborator

    I just tested this on the GitHub API and it seems to be a bug on their end as the response for https://docs.github.com/en/enterprise-cloud@latest/rest/orgs/rules?apiVersion=2022-11-28#get-an-organization-repository-ruleset

    It contains this, instead of an actor_id set

    "bypass_actors": [
    		{
    			"actor_id": null,
    			"actor_type": "OrganizationAdmin",
    			"bypass_mode": "pull_request"
    		},
    
  3. deiga commented on Nov 21, 2025

    @deiga
    Collaborator

    And this seems to have been discussed already in #2536

  4. moved this from 🆕 Triage to ✅ Done in 🧰 Octokit Activeon Jul 3, 2026
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: Documentation

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions