Skip to content

[FEAT]: Data Source with Owner/Organization/Enterprise Context #2686

Open
@cdw-dustdor

Description

@cdw-dustdor

Describe the need

We can use the following to get context about the currently authenticated user:

data "github_user" "_" {
  username = ""
}

It would be great to be able to get information about the current owner/organization/enterprise such that it can rely on the current authentication context to determing if the GITHUB_OWNER is an organization or enteprise.

This can be useful for variable validation when specific arguments or nested blocks can only be used in a certain context, like the branch_name_pattern nested block in the github_repository_ruleset resource.

SDK Version

No response

API Version

No response

Relevant log output

N/A

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: FeatureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions