Repository navigation
Open
Labels
Type: MaintenanceAny dependency, housekeeping, and clean up Issue or PR
Milestone
Description
Describe the need
Please cut a release from main. v6.13.0 (2026-07-08) is the latest release and is ~2.5 months old. Three fixes that are merged on main but unreleased each cause user-visible failures on v6.13.0, and they compound with one another:
| Merged fix | Issue it fixes | Impact while unreleased |
|---|---|---|
| #3553 — remove vulnerability alerts from state for archived/deleted repos | nil-pointer panic | resourceGithubRepositoryVulnerabilityAlertsRead reads resp.StatusCode inside the err != nil branch with no nil guard. On any transport-level error resp is nil, so the whole provider process panics — not just the one resource. |
| #3605 — simplify new client throttle logic to avoid leaks | #3603 | The throttler released its semaphore permit on Body.Close(), so every non-2xx response leaks one of 100 concurrency permits permanently. Degrades toward serial, then hangs. |
| #3635 — set correct transport order for new client cache | #3612 | The conditional-request cache sits outside the OAuth2 transport, so it never sees the Authorization header it partitions on. |
We are running v6.13.0 against two GitHub Enterprise Cloud organizations with a GitHub App installation token and the 6.13+ client enabled (GITHUB_LEGACY_CLIENT=false), and we hit all three. The panic is the one that turns a recoverable API error into a failed apply.
We recognise "cut a release" is a maintainer judgement about what else is on main.
Relevant log output
# 1. #3553 — the panic. Triggered here by a rate-limit error mid-refresh, but the
# defect is general: any transport-level error on that call panics the same way.
Stack trace from the terraform-provider-github_v6.13.0 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xe973bc]
goroutine 25850 [running]:
github.com/integrations/terraform-provider-github/v6/github.resourceGithubRepositoryVulnerabilityAlertsRead(...)
github.com/integrations/terraform-provider-github/v6/github/resource_github_repository_vulnerability_alerts.go:100 +0x29c
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(...)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:866 +0x119
Error: The terraform-provider-github_v6.13.0 plugin crashed!
# The unguarded read, at v6.13.0 (fixed on main by #3553):
#
# vulnerabilityAlertsEnabled, resp, err := client.Repositories.GetVulnerabilityAlerts(ctx, owner, repoName)
# if err != nil {
# if resp.StatusCode == http.StatusNotFound { // <-- resp is nil here
#
# go-github returns a nil *github.Response on transport error (github.go: `if resp != nil {
# response = newResponse(resp) }`), and Response embeds *http.Response, so this is a
# two-level nil dereference. Note the prevailing idiom elsewhere in this codebase is
# already `if resp != nil && resp.StatusCode == ...`, so this line was an outlier.
# One sibling still unguarded on main: github/resource_github_repository.go:1024.
# 2. The error that triggered it — and a related upstream problem worth flagging.
Error: Get "https://api.github.com/orgs/<org>": (http.RoundTripper).RoundTrip failed: primary rate limit reached on request to https://api.github.com/orgs/<org> with category: core. wait until 2026-09-18 19:34:35 +0000 UTC before sending more requests.
# 32 of these in one run, all with the same reset timestamp. A GET /rate_limit probe
# using the SAME token, 11s before and 1s after, reported core 15000/15000 remaining
# (0.0% of window used) and a delta of 0 consumed. The block is raised client-side by
# gofri/go-github-ratelimit v2.0.2 (pinned unchanged on main), which arms a
# category-wide preemptive block on ANY 403/429 carrying x-ratelimit-remaining: 0 --
# a shape GitHub documents for SECONDARY rate limits. Filed upstream:
# https://github.com/gofri/go-github-ratelimit/issues/50
#
# Not asking this repo to fix that, but two notes that are this repo's call:
# - go-github-ratelimit has had no commits since 2025-03-14, so the pin may be a
# maintenance risk independent of this bug.
# - internal/ghclient/const.go sets maxConcurrentRequests = 100, exactly GitHub's
# documented concurrent-request cap, and internal/ghclient/token.go shares that one
# semaphore between the REST and GraphQL clients -- while GitHub's 100-concurrent
# limit is also shared across REST and GraphQL and scoped per installation. So a
# single provider instance sits at the boundary rather than under it, and there is
# no knob to lower it. A configurable ceiling (or a default below 100) would let
# large workspaces stay clear of the secondary limit.
#
# Existing related issue: #3565 reports the same error string and the same
# "(http.RoundTripper).RoundTrip failed:" prefix.Reacted by MATSUURA, Yosuke, Ludovic TOURMAN, dekokun, aubernknight and Runye Zhang
Metadata
Metadata
Assignees
Labels
Type: MaintenanceAny dependency, housekeeping, and clean up Issue or PR
Activity
github-actions commentedon Sep 21, 2026
👋 Hi, and thank you for opening this issue!
This repo is maintained by GitHub and community members on a best-effort basis. We'll get to this as soon as we can.
You can help us prioritize by adding details, reproduction steps, or a 👍 to issues that matter to you, and by joining the discussion on open issues and PRs.
🤖 This is an automated message.
deiga commentedon Sep 21, 2026
Hey @joe-camp-15367
As you might have noticed, we have a v6.14.0 release planned already, but it's not completed yet: https://github.com/integrations/terraform-provider-github/issues?q=sort%3Aupdated-desc%20is%3Aissue%20state%3Aopen%20milestone%3Av6.14.0
benlangfeld commentedon Sep 24, 2026
@deiga At least one of these fixes is incredibly valuable. Is it really necessary to wait for other things to make their way in before cutting a release? Surely that stuff can just go into 6.14.1 and 6.14 could be shipped now.
deiga commentedon Sep 25, 2026
@benlangfeld if there would be capacity available from maintainers and GitHub, we could release every time we fix something.
But such is unfortunately not the case right now 😬
joe-camp-15367 commentedon Dec 1, 2026
Hi @deiga, @stevehipwell, thanks for #3739. Moving rate-limit handling in-tree and checking for secondary limits first fixes the misclassification we reported in gofri/go-github-ratelimit#50. That was the main root cause on our side, so it's great to see it land.
I know from the earlier comment that maintainer capacity is limited and a release for every fix isn't realistic, and I don't want to add pressure. I'm only asking whether there's a rough ETA for 6.14.0, or whatever release would include #3553, #3605, #3635 and #3739, so we can plan around it.
For context: we run org governance through this provider in CI, so it sits in the critical path for any GitHub governance change. On v6.13.0, false rate-limit failures and the panic fixed in #3553 regularly fail whole plans and applies. We've been trying to put in workarounds to reduce the impact, but the real fix is the code already on main.
Even "not before X" would help us decide whether to keep layering on workarounds or wait for the release.
Thanks again for maintaining this.