CI Perf Lint

terraform-github-parallel-requests

Severity: suggestion Confidence: high

What it does

Checks that every provider "github" block with base_url set (indicating GitHub Enterprise) also enables parallel_requests = true.

Why it matters

GitHub Enterprise environments typically have higher API rate limits and lower network latency than github.com. Enabling parallel_requests allows the Terraform GitHub provider to make concurrent API calls, reducing plan and apply execution time. Without it, API requests are serialized, wasting the available throughput.

How to fix

Add parallel_requests = true inside the provider "github" block that configures base_url:

provider "github" {
  base_url          = "https://github.example.com/api/v3/"
  parallel_requests = true
}

Example

Problematic — GHE provider without parallel requests:

provider "github" {
  base_url = "https://github.example.com/api/v3/"
  token    = var.github_token
}

Fixed — parallel requests enabled:

provider "github" {
  base_url          = "https://github.example.com/api/v3/"
  token            = var.github_token
  parallel_requests = true
}

Notes