Skip to content

[BUG]: GitHub provider version < 6.10.0 fails with "This organization does not allow private repository forking []" #3097

Closed as duplicate

Description

@pidumenk

Expected Behavior

I observed you released new versions v6.10.0 and v6.10.1 four days ago, introducing a new option called allow_forking: https://registry.terraform.io/providers/integrations/github/6.10.0/docs/resources/repository#allow_forking-11

This option did not exist in earlier provider versions, so backward compatibility should have been preserved.

Actual Behavior

However, even using an older provider versions, the error still occurs, despite the fact that allow_forking was not available in those releases.

Error: PATCH https://api.github.com/repos/<ORGANIZATION>/homebrew-tap: 422 This organization does not allow private repository forking []

  with module.github_repository["homebrew-tap"].github_repository.this,
  on src/main.tf line 1, in resource "github_repository" "this":
   1: resource "github_repository" "this" {

Error: PATCH https://api.github.com/repos/<ORGANIZATION>/litellm-oidc-proxy: 422 This organization does not allow private repository forking []

  with module.github_repository["litellm-oidc-proxy"].github_repository.this,
  on src/main.tf line 1, in resource "github_repository" "this":
   1: resource "github_repository" "this" {

It blocks us from propagating changes to GitHub repositories during the Terraform apply steps.

Terraform Version

Terrafrom v1.14.3
on linux_amd64

  • provider registry.terraform.io/integrations/github v5.45.0, v6.6.0

Affected Resource(s)

  • github_repository

Terraform Configuration Files

Steps to Reproduce

  1. Set the GitHub provider version to < 6.10.0 (before the allow_forking option was introduced).
  2. Run terraform plan on an existing github_repository configuration.
  3. Run terraform apply.

Debug Output

Panic Output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    Type: Bug
    Status: Triage
    on Jan 20, 2026
  2. github-actions commented on Jan 20, 2026

    @github-actions

    👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

  3. karklik commented on Jan 20, 2026

    @karklik

    Duplicate of #3088

  4. calebworks commented on Feb 11, 2026

    @calebworks

    I'm also seeing this issue with provider version 6.8.3. Does anyone know which version is working?

    I'm still confused how this bug has been introduced into previous versions retrospectively, unless there was a Github API change? My module hasn't changed provider versions for as long as I'm aware.

  5. deiga commented on Feb 11, 2026

    @deiga
    Collaborator

    @calebworks Github constantly changes their API without versioning it 😬
    Could you try with the latest provider version? (6.11.0)

  6. calebworks commented on Feb 11, 2026

    @calebworks

    @calebworks Github constantly changes their API without versioning it 😬 Could you try with the latest provider version? (6.11.0)

    That's very true @deiga.

    I've just tried with provider versions 6.10.0 and 6.11.0 and the issue persists across both :(

  7. deiga commented on Feb 11, 2026

    @deiga
    Collaborator

    @calebworks Github constantly changes their API without versioning it 😬 Could you try with the latest provider version? (6.11.0)

    That's very true @deiga.

    I've just tried with provider versions 6.10.0 and 6.11.0 and the issue persists across both :(

    @calebworks Sorry, to hear that!
    Could you provide DEBUG logs and a config example of the failing code?

  8. calebworks commented on Feb 11, 2026

    @calebworks

    @calebworks Github constantly changes their API without versioning it 😬 Could you try with the latest provider version? (6.11.0)

    That's very true @deiga.
    I've just tried with provider versions 6.10.0 and 6.11.0 and the issue persists across both :(

    @calebworks Sorry, to hear that! Could you provide DEBUG logs and a config example of the failing code?

    @deiga the config I'm using is part of a broader module & project that's fairly complex, so it would take me some time to prepare that. However, this issue is only appearing on one repo and not others - I suspect the problem repo once had forking enabled and is catching a logic edge-case on the API side as a result.

    In any case, I'm hoping the issue will be resolved by #3174. If not, I can probably put together some debug logs (and possibly a config although that may be repo-dependent) but I'd need to spend some time to make sure they're sanitised.

  9. stevehipwell commented on Feb 11, 2026

    @stevehipwell
    Collaborator

    @calebworks #3174 should fix your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageType: Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions