Skip to content

github_repository_collaborators does not support custom repository role #1775

@alk-jozog

Description

@alk-jozog

Hello,

I've created a custom role named repo-owners with resource github_organization_custom_role.
When trying to use it with github_repository_collaborators, it fails with

repo-owners is an invalid value for argument team.2.permission

Documentation states that:

Must be one of pull, push, maintain, triage or admin or the name of an existing custom repository role within the organization for organization-owned repositories.

but looking at the code it seems te me it only supports the hardcoded list of builtin roles https://github.com/integrations/terraform-provider-github/blob/main/github/resource_github_repository_collaborators.go#L60

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions