Skip to content

Use GetRoleName() instead of permission mapping not backward compatible. #1222

@schans

Description

@schans

Hi there,

Terraform Version

4.27.0

Affected Resource(s)

  • resource_github_team_repository

Expected Behavior

Things keep working as in <4.27.0

Actual Behavior

Non-custom roles are broken as the naming is different. read vs pull, write vs push etc.
For a lot more info see: #1192

Steps to Reproduce

Upgrade from <4.27.0 to 4.27.0 and run tf apply

Important Factoids

Seems a bit of a mess due to historic reasons as Github? https://github.community/t/is-the-api-insane-with-respect-to-collaborators-or-am-i-confused/253696

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions