Describe the need
Two attributes that already exist on go-github v85's Organization struct are returned by GET /orgs/{org} and PATCH /orgs/{org} responses, but are not yet surfaced by github_organization_settings (resource) or github_organization (data source):
default_repository_branch — the default branch name applied to new repositories created in the organization (commonly main). Backed by Organization.DefaultRepositoryBranch (*string) in go-github.
secret_scanning_validity_checks_enabled — whether automatic validity checks on supported partner tokens are enabled for the organization. Backed by Organization.SecretScanningValidityChecksEnabled (*bool) in go-github.
This is the same shape of change as #3389 (which exposes seven other attributes that were already in go-github), independent of the go-github library updates needed for the few fields that are still missing upstream.
Companion change: also add both to the github_organization data source for symmetry, matching the pattern from #1850.
SDK Version
terraform-provider-github main (post v6.12, current HEAD add2157906)
API Version
REST API 2022-11-28
Code of Conduct
Describe the need
Two attributes that already exist on go-github v85's
Organizationstruct are returned byGET /orgs/{org}andPATCH /orgs/{org}responses, but are not yet surfaced bygithub_organization_settings(resource) orgithub_organization(data source):default_repository_branch— the default branch name applied to new repositories created in the organization (commonlymain). Backed byOrganization.DefaultRepositoryBranch(*string) in go-github.secret_scanning_validity_checks_enabled— whether automatic validity checks on supported partner tokens are enabled for the organization. Backed byOrganization.SecretScanningValidityChecksEnabled(*bool) in go-github.This is the same shape of change as #3389 (which exposes seven other attributes that were already in
go-github), independent of thego-githublibrary updates needed for the few fields that are still missing upstream.Companion change: also add both to the
github_organizationdata source for symmetry, matching the pattern from #1850.SDK Version
terraform-provider-github main (post v6.12, current HEAD
add2157906)API Version
REST API 2022-11-28
Code of Conduct