integrations / terraform-provider-github

Terraform GitHub provider
https://www.terraform.io/docs/providers/github/
MIT License
891 stars 736 forks source link

[FEAT]: Get the current `github_app` from a data source similar to `github_user` #2229

Open dreinhardt89 opened 5 months ago

dreinhardt89 commented 5 months ago

Describe the need

You can currently get the current github_user via a data source like below:

# Retrieve information about the currently authenticated user.
data "github_user" "current" {
  username = ""
}

it would be nice to be able to do the same with the github_app data source (for when you are authenticating the provider with a github app).

ex:

# Retrieve information about the currently authenticated app.
data "github_app" "current" {
  slug = ""
}

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct