[BUG]: when using github_repository_environments as a data source with over 30 environments in a repo the plugin crashes #2519
Labels
Status: Triage
This is being looked at and prioritized
Type: Bug
Something isn't working as documented
Expected Behavior
The plugin to not crash and provide a list of the environments.
Actual Behavior
The plugin crashes unless there are less then 30 environments which also happens to be the default value for per page requests according to https://docs.github.com/en/rest/deployments/environments?apiVersion=2022-11-28#get-an-environment.
If I drop the number of environments to 30 the plugin runs no problem, but with 31 it just fails to respond over and over again.
Terraform Version
Terraform v1.9.8 using terraform-provider-github v6.4.0
Affected Resource(s)
github_repository_environments
Terraform Configuration Files
No response
Steps to Reproduce
Create a github repo with 30+ environments and try to read the
data "github_repository_environments" "this" {
repository = "${var.repo_name}"
}
Debug Output
No response
Panic Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: