Skip to content

[Schema Inaccuracy] (GHES 3.18) organization_copilot_seat_management property on the app-permissions schema is missing read #6272

@eleanorgoh

Description

@eleanorgoh

Schema Inaccuracy

The organization_copilot_seat_management property on the app-permissions schema is missing read from its enum values for GHES 3.18.

Expected

The organization_copilot_seat_management property on the app-permissions schema should include read as a valid enum value:

  "organization_copilot_seat_management": {                                                                                         
    "type": "string",                                       
    "enum": ["read", "write"]
  }

Currently the schema only lists:

  "organization_copilot_seat_management": {                                                                                         
    "type": "string",                                       
    "enum": ["write"]
  }

Reproduction Steps

List app installations for an organization that has GitHub Copilot Business. Some installations will have
"organization_copilot_seat_management": "read" in their permissions object, which is not representable by the current schema.

  curl -H "Authorization: Bearer $GITHUB_TOKEN" \           
       -H "Accept: application/vnd.github+json" \                                                                                   
       https://ghes.example.com/api/v3/orgs/{org}/installations

Example response snippet:

  {                                                         
    "installations": [
      {
        "permissions": {
          "organization_copilot_seat_management": "read"                                                                            
        }
      }                                                                                                                             
    ]                                                       
  }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions