terraform-provider-github icon indicating copy to clipboard operation
terraform-provider-github copied to clipboard

[FEAT]: Can't configure `Fork pull request workflows from outside collaborators` from Terraform

Open fjakobs opened this issue 2 years ago • 1 comments

Describe the need

I want to configure Fork pull request workflows from outside collaborators from Terraform for my repo but I can't find that setting. I'd expect this to be a property of the github_repository resource.

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

fjakobs avatar Apr 03 '23 07:04 fjakobs

It looks like this is blocked by the lack of availability of a field to control this setting in the underlying API (scanned permissions, workflow runs, and this community discussion), and in turn, that means unavailability in go-github:

https://github.com/google/go-github/blob/d26bcb8be17264a1fad1aaf15147625c0df75a99/github/repos.go#L545-L572

arunsathiya avatar Jan 28 '24 17:01 arunsathiya