Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: when using github_repository_environments as a data source with over 30 environments in a repo the plugin crashes #2519

Open
1 task done
jj-scoll opened this issue Dec 17, 2024 · 0 comments · May be fixed by #2520
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented

Comments

@jj-scoll
Copy link

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

  • I agree to follow this project's Code of Conduct
@jj-scoll jj-scoll added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented
Projects
None yet
1 participant