Skip to content

[BUG]: github_organization data source returns wrong value for members_can_fork_private_repositories #3362

Closed

Description

@andrewesweet

Description

The github_organization data source uses the wrong getter method for the members_can_fork_private_repositories attribute.

In data_source_github_organization.go:257:

_ = d.Set("members_can_fork_private_repositories", organization.GetMembersCanCreatePrivateRepos())

This calls GetMembersCanCreatePrivateRepos() instead of GetMembersCanForkPrivateRepos(), causing the attribute to return the value of members_can_create_private_repositories instead of the actual fork permission.

Expected behavior

members_can_fork_private_repositories should return whether members can fork private repositories.

Actual behavior

Returns the value of members_can_create_private_repositories instead.

Terraform and provider version

All versions since the field was added.

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

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions