Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: github_organization_settings resource fails with HTTP 422 #2305

Open
1 task done
giuliov-unum opened this issue Jul 2, 2024 · 0 comments
Open
1 task done
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Bug Something isn't working as documented

Comments

@giuliov-unum
Copy link

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

  • I agree to follow this project's Code of Conduct
@giuliov-unum giuliov-unum added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels Jul 2, 2024
@kfcampbell kfcampbell added Status: Up for grabs Issues that are ready to be worked on by anyone and removed Status: Triage This is being looked at and prioritized labels Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Bug Something isn't working as documented
Projects
None yet
Development

No branches or pull requests

2 participants