You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a user of the github terraform provider I need to be able to use the current Enterprise settings APIs avaiable in go-github-v67 so that I can properly manage my enterprise needs.
Details
✅ Read-only workflow permissions by default - Available via DefaultWorkflowPermissionEnterprise
✅ Contributor approval permissions - Available via ContributorApprovalPermissions
✅ Advanced Security - Available via EnterpriseSecurityAnalysisSettings
✅ Secret scanning - Available via EnableDisableSecurityFeature
✅ Secret scanning push protection - Available via EnableDisableSecurityFeature
✅ Self-hosted runner permissions - Available via SelfHostRunnerPermissionsEnterprise
Eventually we will need to implement the following as documented in issue #2851
Reacted by Andrew Best, Evan Rappe, Andrew Sweet, Dion Gionet Mallet, Liam O'Neill, James H. Linder, Richard Vaughn, Warrick St. Jean, Ezbon Jacob, Byungjin Park (Claud) and 8 more
I've reached out to the API team and they're aware of the request. At the moment this feature request is not being actively worked on and I can't offer a timeline for it, unfortunately.
👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!
After taking a look at what is in v67 of go-github (the current version that the provider uses) and the GraphQL API surface we'll be able to support the following needs. Given the size of this I recommend that this be reduced into separate issues / change sets.
Handle all of the things that are currently available
Handle all of the changes that can be done via GraphQL
I'll break this up based on my findings so that this need can be addressed in a much more iterative way.
All ready supported
✅ 3rd party actions and workflows allowed - Already supported via github_enterprise_actions_permissions
Can implement:
✅ Read-only workflow permissions by default - Available via DefaultWorkflowPermissionEnterprise
✅ Contributor approval permissions - Available via ContributorApprovalPermissions
✅ Advanced Security - Available via EnterpriseSecurityAnalysisSettings
✅ Secret scanning - Available via EnableDisableSecurityFeature
✅ Secret scanning push protection - Available via EnableDisableSecurityFeature
✅ Self-hosted runner permissions - Available via SelfHostRunnerPermissionsEnterprise
Might be able to implement via GraphQL
❓ Fork PR workflow settings - Available via WorkflowsPermissions APIs, but not in go-github v67
❓ Artifact and log retention - Available via ArtifactPeriodOpt, but not in go-github v67
❓ Repository creation by members - No REST/GraphQL API available
❓ Repository forking - No REST/GraphQL API available
❓ Outside collaborators - No REST/GraphQL API available
❓ Repository visibility change permissions - No REST/GraphQL API available
❓ Repository deletion and transfer permissions - No REST/GraphQL API available
❓ Issue deletion permissions - No REST/GraphQL API available
Cannot implement
❌ Billing spending limits - No public API available
Activity
HariSekhon commentedon Jun 27, 2022
GitHub Enterprise support have confirmed the Rest API is deficient, so have raised a public discussions feature request here to track this publicly:
community/community#19570
kfcampbell commentedon Sep 23, 2022
I still don't think this behavior is available through the API. The only enterprise APIs I can find are here, which isn't what we're after.
I've inquired about this internally and will report back if I hear anything interesting.
kfcampbell commentedon Sep 23, 2022
I've reached out to the API team and they're aware of the request. At the moment this feature request is not being actively worked on and I can't offer a timeline for it, unfortunately.
liamoneill commentedon Dec 21, 2022
It appears like some of these settings are present in the GraphQL API (i.e. UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput). Does this provider only use the REST API or would it be possible to use these?
kfcampbell commentedon Jan 3, 2023
@liamoneill this provider makes use of the GraphQL API as well! If you'd like to create a PR to support this behavior, please feel free!
silvan02 commentedon Jan 12, 2023
I also need the option to enable/disable forking
github-actions commentedon Apr 21, 2024
👋 Hey Friends, this issue has been automatically marked as
stalebecause it has no recent activity. It will be closed if no further activity occurs. Please add theStatus: Pinnedlabel if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!ausfestivus commentedon Apr 24, 2024
@kfcampbell are you able to put the
Status: Pinnedlabel on this to stop it being closed? The feature request still stands.nickfloyd commentedon Oct 31, 2025
After taking a look at what is in v67 of go-github (the current version that the provider uses) and the GraphQL API surface we'll be able to support the following needs. Given the size of this I recommend that this be reduced into separate issues / change sets.
I'll break this up based on my findings so that this need can be addressed in a much more iterative way.
All ready supported
github_enterprise_actions_permissionsCan implement:
Might be able to implement via GraphQL
❓ Fork PR workflow settings - Available via WorkflowsPermissions APIs, but not in go-github v67
❓ Artifact and log retention - Available via ArtifactPeriodOpt, but not in go-github v67
❓ Repository creation by members - No REST/GraphQL API available
❓ Repository forking - No REST/GraphQL API available
❓ Outside collaborators - No REST/GraphQL API available
❓ Repository visibility change permissions - No REST/GraphQL API available
❓ Repository deletion and transfer permissions - No REST/GraphQL API available
❓ Issue deletion permissions - No REST/GraphQL API available
Cannot implement
❌ Billing spending limits - No public API available
[-]Feature Request: Enterprise Settings[/-][+][feat]: Enterprise Settings[/+]