integrations / terraform-provider-github

Terraform GitHub provider
https://www.terraform.io/docs/providers/github/
MIT License
887 stars 730 forks source link

[FEAT]: github_repository_webhook owner attribute #2127

Open avidspartan1 opened 7 months ago

avidspartan1 commented 7 months ago

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

mblum14 commented 6 months ago

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.

kfcampbell commented 6 months ago

We need to do a better job of this across all resources. I've started #1655 to track a more comprehensive effort there.