Repository navigation
Labels
Type: BugSomething isn't working as documentedr/team_membersvNextPatchThese issues and PRs should be included in the next patch release
Milestone
Description
Expected Behavior
Usernames shouldn't be lowercased, of if they are lowercased consistently lowercased.
v6.13.0 brought in some lowercasing on team members, v6.12.1 was good.
Actual Behavior
# github_team_members.misc_devs has changed
~ resource "github_team_members" "misc_devs" {
id = "123456"
# (2 unchanged attributes hidden)
- members {
- role = "member" -> null
- username = "ChrisSomethingSomething" -> null
}
+ members {
+ role = "member"
+ username = "chrissomethingsomething"
}
# (6 unchanged blocks hidden)
}
# github_team_members.misc_devs will be updated in-place
~ resource "github_team_members" "misc_devs" {
id = "123456"
# (2 unchanged attributes hidden)
- members {
- role = "member" -> null
- username = "chrissomethingsomething" -> null
}
+ members {
+ role = "member"
+ username = "ChrisSomethingSomething"
}
# (6 unchanged blocks hidden)
}
Terraform Version
OpenTofu v1.12.0
on linux_amd64
- provider registry.opentofu.org/integrations/github v6.13.0
GitHub Installation Type
- GitHub.com (Free, Pro, or Team)
- GitHub Enterprise Server (on-premises)
- GitHub Enterprise Cloud with Personal Accounts (github.com)
- GitHub Enterprise Cloud with Managed Users/EMU (github.com)
- GitHub Enterprise Cloud with Data Residency (*.ghe.com)
- I don't know
Affected Resource(s)
- github_team_members
Terraform Configuration Files
Steps to Reproduce
No response
Debug Output
Code of Conduct
- I agree to follow this project's Code of Conduct
Reacted by jasmin-terrien, Dan Crews, Quentin Rousseau, k-saiki, Tom Perrillat-Collomb, Jim Barber, Kenny Rasschaert, markh-ofh, Catherine Truscott, Reece Como and 24 more
Metadata
Metadata
Assignees
Labels
Type: BugSomething isn't working as documentedr/team_membersvNextPatchThese issues and PRs should be included in the next patch release
Activity
github-actions commentedon Jul 10, 2026
👋 Hi, and thank you for opening this issue!
This repo is maintained by GitHub and community members on a best-effort basis. We'll get to this as soon as we can.
You can help us prioritize by adding details, reproduction steps, or a 👍 to issues that matter to you, and by joining the discussion on open issues and PRs.
🤖 This is an automated message.
dncrews commentedon Jul 10, 2026
+1: This bug creates a permadiff. We have one user who suddenly gets 4-6 emails every time we do a terraform apply because they are removed and then added right back to multiple groups due to this bug.
reececomo commentedon Jul 14, 2026
Same issue. Unable to revert due to:
Any ETA on a fix forward?
cattruscott commentedon Jul 14, 2026
It appears that this section replaced the previous
teamMembersAndMaintainersand changed frommember.Node.Logintostrings.ToLower(edge.Node.Login)stevehipwell commentedon Jul 14, 2026
It looks like we need to add diff suppression to ignore case changes, internally the provider needs to use a consistent case.
bootswithdefer commentedon Jul 15, 2026
Adding a
lower()likeusername = lower("MixedCaseUsername")works around this issue for me. If the provider is going to lowercase usernames from github it also needs to lowercase usernames provided by the user.esacteksab commentedon Jul 15, 2026
lower()didn't work for me. And having already ran with6.13, I can't easily downgrade.liskl commentedon Jul 27, 2026
Confirming on
6.13.0, and two data points that may help.1. The read path is the only thing affected; data sources are fine.
I checked the same team three ways:
6.12.1,6.13.0, and6.13.0again. In all three, thegithub_teamdata source returns the canonical mixed-case login. It is only thegithub_team_membersresource read that lowercases, which matches @cattruscott's pointer togetTeamMembers. So the underlying API response is fine and the normalisation is purely provider-side.2. Applying is a no-op against the API, which is why it never converges.
updateTeamMemberslowercases the configured login before callingAddTeamMembershipBySlug, so an apply does not actually change anything at GitHub. But the read writes lowercase into state while the config keeps canonical casing, so the diff reappears on the very next plan. In our case that is multiple dozens ofgithub_team_membersresources across three root modules, all cosmetic, on every single plan.3. On the "can't downgrade" reports from @reececomo and @esacteksab, plus a mitigation.
6.13.0bumpsgithub_team_membersSchemaVersionto 1 and ships aStateUpgrader, which is consistent withResource instance managed by newer provider versionafter the fact.Worth flagging for anyone who has not upgraded yet:
terraform plandoes not persist the upgraded state, onlyapplydoes. We planned6.13.0across all our workspaces, saw the diff, and pinned straight back to6.12.1with no state surgery. If you are evaluating the upgrade, plan first and read the diff before applying, and you keep the ability to go back.Happy to test a patch against a reasonably large team set if that is useful.
ci: downgrade github provider to latest version before 6.13.0
ci: downgrade github provider to latest version before 6.13.0
ci: downgrade github provider to latest version before 6.13.0