Skip to content

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

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:

Activity

  1. Luis-3M commented on Aug 4, 2022

    @Luis-3M

    Many thanks @kfcampbell.
    Given that we've successfully reverted PR #1192 , should we close this issue and open a new one regarding the original broken behaviour when using custom roles?

  2. kfcampbell commented on Aug 26, 2022

    @kfcampbell
    Contributor

    That sounds good to me! I've chosen to reopen #1183.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions