| layout | github |
|---|---|
| page_title | GitHub: repository_environments |
| description | Get information on a GitHub repository's environments. |
Use this data source to retrieve information about environments for a repository.
Note
Verify you have the correct permissions set up from the GitHub API docs
data "github_repository_environments" "example" {
repository = "example-repository"
}repository- (Required) Name of the repository to retrieve the environments from.
environments- The list of this repository's environments. Each element ofenvironmentshas the following attributes:name- Environment name.node_id- Environment node id.