integrations / integrations/terraform-provider-github

[BUG]: `group_description` in `github_team_sync_group_mapping` constantly recreated on change

Open
#2,423 8 comments 12 reactions 0 assignees View on GitHub
r/team_sync_group_mapping Type: Bug
Dominant language
Go
Stars
1.2k
Forks
1k
Avg merge
1d 14h
Merged PRs (30d)
8

Description

### Expected Behavior

When a `group_description` is changed in IdPs (for example Azure Entra), the change in `github_team_sync_group_mapping` should persist on applying Terraform.

### Actual Behavior

When a `group_description` is changed in IdPs (for example Azure Entra), terraform see the change and try to update the `group` block in `github_team_sync_group_mapping`. However the change with the new `group_description` does not persist. During next runs, terraform still shows the difference and constantly will try to update.

This could be related on how GitHub API handles updates to `Identity Provider Groups`. Some observation on similarity in GitHub GUI that might be relevant:
- Change description of Azure Entra group which is connected to GitHub team.
- Go to GitHub team setting `Identity Provider Groups`. Entra group will have the old description. If we try to remove the Entra group and add it again, the Entra group description will be updated, but the changes to the group description are not saved on pressing save. The group should be removed, saved and then added again to reflect the change to the description.

### Terraform Version

Terraform 1.9.7
integrations/github v5.45.0

### Affected Resource(s)

- github_team_sync_group_mapping

### Terraform Configuration Files

_No response_

### Steps to Reproduce

_No response_

### Debug Output

_No response_

### Panic 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.