Skip to content

[FEAT]: Add resource for enterprise private repository forking policy #3363

Open

Description

@andrewesweet

Describe the need

There is no Terraform resource to manage the enterprise-level private repository forking policy. This policy controls whether and where members can fork private and internal repositories within a GitHub Enterprise.

The GitHub GraphQL API already supports this via the updateEnterpriseAllowPrivateRepositoryForkingSetting mutation, which accepts:

  • settingValue: ENABLED, DISABLED, or NO_POLICY
  • policyValue: controls fork destinations (SAME_ORGANIZATION, ENTERPRISE_ORGANIZATIONS_USER_ACCOUNTS, EVERYWHERE, etc.)

The shurcooL/githubv4 Go client already has full type support for this mutation and its enums.

This is particularly important for EMU (Enterprise Managed Users) environments where administrators need to control whether members can fork to their enterprise-managed user accounts.

Relates to #2851 (broader enterprise settings support), #1844 (fork policy reset issue)

SDK Version

go-github v85, shurcooL/githubv4 v0.0.0-20260209031235

API Version

GraphQL v4

Code of Conduct

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

Activity

  1. github-actions commented on Apr 22, 2026

    @github-actions

    👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

  2. added
    Status: Triage
    Type: Feature
    and removed
    Status: Triage
    on May 10, 2026
  3. robert-crandall commented on Nov 25, 2026

    @robert-crandall
    Contributor

    Linking #3361 from @andrewesweet here for reference. We closed it as part of our temporary move to an issue-first model (see CONTRIBUTING.md), and want to keep the context and implementation approach handy when we pick this issue up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GraphQLNew resourceType: Feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions