terraform-provider-github
terraform-provider-github copied to clipboard
[FEAT]: github_repository_webhook owner attribute
Describe the need
I work with a GitHub Enterprise instance, using a single token, and would like to create many webhooks across several different Organizations. The list of organiziations can change based on deployment of the Terraform module, so using provider aliases isn't an option (or, at best, incredibly messy).
If there was an optional owner attribute available for the github_repository_webhook resource, I could do this easily. As it stands, I have to use the hacky workaround mentioned in #1436, which seems to lead to state inconsistency.
SDK Version
No response
API Version
No response
Relevant log output
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
I've got a similar issue but with the github_app_installation_repository resource. Would be helpful to be able to specify an alternate owner in this case as well.
We need to do a better job of this across all resources. I've started #1655 to track a more comprehensive effort there.