[BUG]: github_organization_webhook resource creation fake-failure #2142
Labels
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Bug
Something isn't working as documented
Expected Behavior
When creating this resource:
This should create a new webhook, as described in the documentation: https://registry.terraform.io/providers/integrations/github/latest/docs/resources/organization_webhook#configuration
Actual Behavior
TF throws an error:
The problem is that we web hook actually gets created:
![Screenshot 2024-02-12 at 11 03 20](https://private-user-images.githubusercontent.com/159275847/304016606-8e334a6f-de73-4cba-92ec-db55c1c0d2fb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzODg4MjcsIm5iZiI6MTczOTM4ODUyNywicGF0aCI6Ii8xNTkyNzU4NDcvMzA0MDE2NjA2LThlMzM0YTZmLWRlNzMtNGNiYS05MmVjLWRiNTVjMWMwZDJmYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQxOTI4NDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zMjRkOGExMmU4ODgyZjE5ZDkwOTI5MDFiNGQ1NTczOWVlZDdjNTA3MzU2Zjk1N2VjZmQzMjg4YTUyMDc4NzcwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.TOpZG6QlFCEkCQXNe_zP-20DR_WmxD1bLMQpQize-PA)
So the next execution will delete and recreate the resource.
Additionally, the same resource type that was created with v5.x of the provider works just fine. The bug affects only the creation of a new webhook.
Terraform Version
Terraform 1.7.2 on linux_amd64
Affected versions: v6.0.0.0-rc2 (I have tested the creation of a new webhook only on this one)
Affected Resource(s)
github_organization_webhook
Terraform Configuration Files
No response
Steps to Reproduce
No response
Debug Output
No response
Panic Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: