integrations / integrations/terraform-provider-github

[MAINT]: Missing distinction between roles and permissions

Open
#2,508 3 comments 0 reactions 0 assignees View on GitHub
Status: Triage Type: Maintenance
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.