Skip to content

[feat]: Enterprise Settings #1199

Closed

Description

@HariSekhon

Relates to: #1200

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

Activity

  1. HariSekhon commented on Jun 27, 2022

    @HariSekhon
    Author

    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

  2. kfcampbell commented on Sep 23, 2022

    @kfcampbell
    Contributor

    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.

  3. kfcampbell commented on Sep 23, 2022

    @kfcampbell
    Contributor

    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.

  4. liamoneill commented on Dec 21, 2022

    @liamoneill

    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?

  5. kfcampbell commented on Jan 3, 2023

    @kfcampbell
    Contributor

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

  6. silvan02 commented on Jan 12, 2023

    @silvan02

    I also need the option to enable/disable forking

  7. added
    Type: Feature
    Status: Up for grabs
    on Jan 13, 2023
  8. github-actions commented on Apr 21, 2024

    @github-actions

    👋 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!

  9. added
    Status: Stale
    on Apr 21, 2024
  10. ausfestivus commented on Apr 24, 2024

    @ausfestivus

    @kfcampbell are you able to put the Status: Pinned label on this to stop it being closed? The feature request still stands.

  11. removed
    Status: Stale
    on Apr 26, 2024
  12. added
    Status: Pinned
    on Apr 29, 2024
  13. moved this from Backlog to On Deck in Terraform Provideron Oct 14, 2025
  14. self-assigned this
    on Oct 31, 2025
  15. nickfloyd commented on Oct 31, 2025

    @nickfloyd
    Contributor

    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.

    1. Handle all of the things that are currently available
    2. 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

  16. moved this from On Deck to In Progress in Terraform Provideron Oct 31, 2025
  17. changed the title [-]Feature Request: Enterprise Settings[/-] [+][feat]: Enterprise Settings[/+] on Oct 31, 2025
  18. moved this from In Progress to Done in Terraform Provideron Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Status: PinnedStatus: Up for grabsType: Feature

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions