integrations / integrations/terraform-provider-github
[MAINT]: Missing distinction between roles and permissions
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 1k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 8
Description
### Describe the need
There is currently a function in the provider called `getPermission` that is being used to convert a role (e.g. `read`) into a permission (e.g. `pull`). The validity of this should be investigated as a comparison to the GitHub REST API; for example `github_repository_team` currently has the `permission` attribute which is being mapped to the `role_name` coming back from the REST API while the `permissions` array data from the REST API are being ignored.
This is relevant to #2498.
### SDK Version
_No response_
### API Version
_No response_
### Relevant log output
_No response_
### Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Contributor guide
Assessment
This issue has not been assessed yet.