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
[FEAT]: Allow Defining Actions Access Settings on a Repository #1418
Comments
Ooh, you're right! This would be a great feature to implement in the provider. I've added the "Status: Up for grabs" label and I'd be happy to review PRs for this behavior. |
I'm curious, I feel like it would make sense for this to be added to the Just wanted to check before I open a PR :) Edit: also digging in a bit deeper, it looks like an update to go-github will be required before this can be done, as I'm not seeing any function for manipulating these settings the library. |
@wwsean08 Thanks for engaging on this. I am not very familiar with the workflow between these repositories - does a separate issue need to be created wherever the "go-github" source code exists? |
@cwthrivent the repository you're looking for is google/go-github! That's the module we use to interact with GitHub's REST API. |
This was added in the recent release (v48.2.0) via google/go-github#2578 so it should be ready to be added into terraform-provider-github |
The project has been updated to use v48.2.0 of google/go-github, so this feature is now unblocked! |
Gotcha, I must have been looking at an older version of the source code when I was searching for the comment with the documentation URL. I can try taking a stab at this on Friday, but curious about your opinion on my proposition of adding this to the |
I'm 👍 on keeping the new functionality in the existing |
Describe the need
In a repository, you can go to
Settings -> Actions -> General
and then there is a section for controlling the visibility/scope of the repository with respect to GitHub Actions. Here is a screenshot:Currently, there does not seem to be a way to configure this via this Terraform provider (I apologize in advance if there is).
I found in the GitHub documentation that there is support for some API calls to fetch and set this value:
GET
- https://docs.github.com/en/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#get-the-level-of-access-for-workflows-outside-of-the-repositoryPUT
- https://docs.github.com/en/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-the-level-of-access-for-workflows-outside-of-the-repositoryThese are documented in the context of the GitHub Enterprise API, so I hope they are not out of scope for this provider. Let me know if they are.
SDK Version
No response
API Version
GitHub REST API 2022-11-28
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: