terraform-provider-github
terraform-provider-github copied to clipboard
[BUG]: Not able to create a new user anymore
Expected Behavior
Hello, we have the following code to create new users:
resource "github_membership" "members" {
for_each = yamldecode(file("./yaml_files/users.yml"))["users"]
username = lookup(each.value, "username", null)
role = lookup(each.value, "role", "member")
}
It has been working until now.
Actual Behavior
When I try to create a new user I get: PUT https://api.github.com/orgs/<ORGANIZATION>: 403 You must be an admin to add or update an organization membership.
But I am an owner and I am able to create users through the UI. For applying the changes, I am login in with:
gh auth login -w
Terraform Version
source = "registry.opentofu.org/integrations/github"
version = "6.2.2"
opentofu version: 1.6.2
Affected Resource(s)
- github user creation
Terraform Configuration Files
No response
Steps to Reproduce
terraform apply
Debug Output
No response
Panic Output
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct