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

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

Open jooola opened this issue 1 year ago • 3 comments

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

  • [X] I agree to follow this project's Code of Conduct

jooola avatar Jan 17 '24 12:01 jooola

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.

nickfloyd avatar Jan 19 '24 16:01 nickfloyd

@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 ?

manjinder-singh-tech avatar Feb 02 '24 14:02 manjinder-singh-tech

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

kfcampbell avatar Feb 02 '24 21:02 kfcampbell