Use this data source to retrieve basic information about a GitHub Organization.
data "github_organization" "example" {
name = "github"
}
ignore_archived_repos
- Whether or not to include archived repos in the repositories
listid
- The ID of the organizationnode_id
- GraphQL global node ID for use with the v4 APIname
- The organization's public profile nameorgname
- The organization's name as used in URLs and the APIlogin
- The organization account logindescription
- The organization account descriptionplan
- The organization account plan namerepositories
- (list
) A list of the full names of the repositories in the organization formatted as owner/name
stringsmembers
- Deprecated: use users
instead by replacing github_organization.example.members
to github_organization.example.users[*].login
which will give you the same value, expect this field to be removed in next major versionusers
- (list
) A list with the members of the organization with following fields:
id
- The ID of the memberlogin
- The members loginemail
- Publicly available emailrole
- Member role ADMIN
, MEMBER
two_factor_requirement_enabled
- Whether two-factor authentication is required for all members of the organization.default_repository_permission
- Default permission level members have for organization repositories.members_allowed_repository_creation_type
- The type of repository allowed to be created by members of the organization. Can be one of ALL
, PUBLIC
, PRIVATE
, NONE
.members_can_create_repositories
- Whether non-admin organization members can create repositories.members_can_create_internal_repositories
- Whether organization members can create internal repositories.members_can_create_private_repositories
- Whether organization members can create private repositories.members_can_create_public_repositories
- Whether organization members can create public repositories.members_can_create_pages
- Whether organization members can create pages sites.members_can_create_public_pages
- Whether organization members can create public pages sites.members_can_create_private_pages
- Whether organization members can create private pages sites.members_can_fork_private_repositories
- Whether organization members can create private repository forks.web_commit_signoff_required
- Whether organization members must sign all commits.advanced_security_enabled_for_new_repositories
- Whether advanced security is enabled for new repositories.dependabot_alerts_enabled_for_new_repositories
- Whether Dependabot alerts is automatically enabled for new repositories.dependabot_security_updates_enabled_for_new_repositories
- Whether Dependabot security updates is automatically enabled for new repositories.dependency_graph_enabled_for_new_repositories
- Whether dependency graph is automatically enabled for new repositories.secret_scanning_enabled_for_new_repositories
- Whether secret scanning is automatically enabled for new repositories.secret_scanning_push_protection_enabled_for_new_repositories
- Whether secret scanning push protection is automatically enabled for new repositories.