Skip to content

Conversation

@vmvarela
Copy link
Owner

This pull request introduces new data sources and resources for managing GitHub Enterprise Teams within the Terraform provider. It adds support for reading and managing enterprise teams, their memberships, and their associated organizations, along with comprehensive acceptance tests to ensure correct behavior. These changes provide users with more granular control and visibility over GitHub Enterprise Teams through Terraform.

New data sources and resources for GitHub Enterprise Teams:

  • Added the github_enterprise_team resource and dataSourceGithubEnterpriseTeam data source, allowing users to manage and query individual enterprise teams by slug or ID. [1] [2] [3]
  • Added the github_enterprise_teams data source to list all teams in a given enterprise, exposing details such as team ID, slug, name, description, organization selection type, and group ID. [1] [2]
  • Introduced the github_enterprise_team_membership resource and dataSourceGithubEnterpriseTeamMembership data source, enabling management and lookup of team memberships for users within an enterprise team. [1] [2] [3]
  • Added the github_enterprise_team_organizations resource and dataSourceGithubEnterpriseTeamOrganizations data source, allowing assignment and querying of organizations associated with an enterprise team. [1] [2] [3]

Acceptance tests for new enterprise team features:

  • Implemented comprehensive acceptance tests for all new data sources in github/data_source_github_enterprise_team_test.go and github/data_source_github_enterprise_teams_test.go, ensuring correct integration with the GitHub API and Terraform workflows. [1] [2]

github-actions bot and others added 2 commits December 17, 2025 21:02
Add support for managing GitHub Enterprise Teams (enterprise-level teams):

Resources:
- github_enterprise_team: create/update/delete enterprise teams
- github_enterprise_team_membership: manage team members
- github_enterprise_team_organizations: assign teams to organizations

Data sources:
- github_enterprise_team: lookup by slug or ID
- github_enterprise_teams: list all enterprise teams
- github_enterprise_team_membership: check user membership
- github_enterprise_team_organizations: list assigned orgs

Note: These endpoints require GitHub Enterprise Cloud with a classic PAT
that has enterprise admin permissions.
@vmvarela vmvarela merged commit 6c34764 into alpha Dec 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants