-
Notifications
You must be signed in to change notification settings - Fork 769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Github Action Permissions #489
Comments
👋 hi @mindfulmonk it seems you request is geared a little towards this repo but maybe more specifically towards feedback on how GitHub actions works itself. It's a bit unclear to me. Are you wanting to script being able to enable actions on individual repositories? or script adding particular actions to every repository? |
Hey @brntbeer both, but the more important one is to enable Actions selectively on each repo. |
ah ok thanks for that @mindfulmonk. So the reason why Terraform cannot do what you're asking for, is there's no API for actions permissions. I've filed this as feedback for our roadmap team at GitHub |
https://docs.github.com/en/free-pro-team@latest/rest/reference/actions#set-allowed-actions-for-a-repository looks promising. However our underlying client library does not show support for this endpoint at the moment. |
@mindfulmonk given https://docs.github.com/en/free-pro-team@latest/rest/reference/actions#set-github-actions-permissions-for-an-organization, does this meet you requirements and just need to wait for the client library to implement? |
It looks like the |
I've opened a PR to support this kind of permissions setting on an organizational level #920. It may or may not cater to your requirements for setting permissions-per repo, but it's a start. |
Hi,
I currently have a use-case where I would like to roll-out Github Actions in the organization, but only to specific repos, currently this is not supported in the provider.
In particular this:
There are two tickets about github actions #162 and #381 but wasn't sure if they tackling this specific issue.
This probably should be a new param in https://www.terraform.io/docs/providers/github/r/repository.html called
actions
with 3 paramsthird-party
local
disabled
Cheers!
The text was updated successfully, but these errors were encountered: