Skip to content

[BUG] members_can_create_internal_repositories in github_organization_settings missing Computed: true causing phantom diffs #3385

Open

Description

@andrewesweet

When a user omits members_can_create_internal_repositories from their config and the enterprise controls the setting externally, every plan shows a diff (state true to zero-value false). Applying that diff sends an update that fails with 422 because the enterprise policy won't allow the change.

The root cause is the same as #3360: the field is Optional without Computed, so the Read function writing the API value back into state conflicts with Terraform's zero-value assumption. Adding Computed: true fixes it.

Activity

  1. github-actions commented on May 1, 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
    Type: Bug
    Status: Triage
    on May 9, 2026
  3. robert-crandall commented on Nov 25, 2026

    @robert-crandall
    Contributor

    Linking #3386 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

    Status: TriageType: Bugr/organization_settings

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions