integrations / terraform-provider-github

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

[FEAT]: Add "approving workflow runs from public forks" settings #2108

Open jooola opened 8 months ago

jooola commented 8 months ago

Describe the need

The Github Actions settings page allow configuring whether a maintainer approval is required for workflows to run on fork Pull requests: https://docs.github.com/en/actions/managing-workflow-runs/approving-workflow-runs-from-public-forks

I didn't find any way to configure this options using the GitHub terraform provider "5.44.0"

This would greatly help us to ensure some sensitive pipeline are not run without the approval of a maintainer, and using terraform will make sure we didn't overlook configuring these settings in a repository.

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct

nickfloyd commented 8 months ago

Hey @jooola thanks for letting us know about this need! ❤️ Let us know if you'd be interested coming up with a way to address it and then submitting a PR to be reviewed. For now I have labeled this as "Up For Grabs" so that the community knows that it's available as well.

manjinder-mckc commented 7 months ago

@jooola @nickfloyd I was looking at this request and I scanned permissions and workflow runs today, but it doesn't look like it's possible yet. Thoughts ?

kfcampbell commented 7 months ago

I also don't see it in the forks section. You're correct @manjinder-mckc, this is blocked until further API support becomes available.