terraform-provider-github
terraform-provider-github copied to clipboard
[BUG]: github_organization_settings resource fails with HTTP 422
Expected Behavior
We want to use the GitHub Terraform provider to manage our organizations but the github_organization_settings
resource invariably fails with HTTP 422.
Tried many different combinations with no luck:
- an existing Org manually created referred via data
- an Org created via
github_enterprise_organization
in the same module - as the single resource in the module and import
The PAT belongs to an Enterprise and Org owner and all permissions selected. This is an EMU Enterprise account.
Actual Behavior
Here is the message
[ERROR] provider.terraform-provider-github_v6.2.2.exe: Response contains error diagnostic: @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 @module=sdk.proto diagnostic_severity=ERROR diagnostic_summary="PATCH https://api.github.com/orgs/OMISSIS: 422 []" tf_proto_version=5.6 tf_provider_addr=provider tf_req_id=491343e0-ef75-6d3c-e12a-cfba58c7c4ca tf_rpc=ApplyResourceChange diagnostic_detail="" tf_resource_type=github_organization_settings timestamp="2024-07-01T15:13:06.315+0100"
Terraform Version
Terraform version: 1.8.5 on Win64 using integrations/github 6.2.2
Affected Resource(s)
github_organization_settings
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