Skip to content

[BUG]: allow_forking option breaks repo creation when the org doesn't allow forking #3088

Closed

Description

@lee2sh

Expected Behavior

The repository should be created normally.

Actual Behavior

I'm getting 422 error when I try to create a repository because my org doesn't allow forking (forking disabled), but it sends the request with allow_forking option regardless.

Terraform Version

opentofu version 1.11.0

Affected Resource(s)

  • github repository

Terraform Configuration Files

Steps to Reproduce

Disable forking at the org level and try to create a repository using the latest github provider

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 16, 2026
  2. github-actions commented on Jan 16, 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. deiga commented on Jan 17, 2026

    @deiga
    Collaborator

    Is this determined by the MembersCanForkPrivateRepos attribute of the Organization? If yes, it could be stored in config.go when we set IsOrganization instead of creating a new attribute

  4. lee2sh commented on Jan 17, 2026

    @lee2sh
    Author

    Is this determined by the MembersCanForkPrivateRepos attribute of the Organization? If yes, it could be stored in config.go when we set IsOrganization instead of creating a new attribute

    That's a great idea. I've made changes to the pr to reflect your suggestion.

  5. itamar-maron commented on Jan 19, 2026

    @itamar-maron

    +1
    Seeing the same behavior.
    I am assuming fix is expected in the next couple of days based off @lee2sh response?

  6. sosoriov commented on Jan 19, 2026

    @sosoriov

    +1
    Seeing the same behavior.

    I hope this is fixed soon 🤞

  7. lebenitza commented on Jan 19, 2026

    @lebenitza

    I think this was introduced by this PR: #3067

  8. stevehipwell commented on Jan 19, 2026

    @stevehipwell
    Collaborator

    @lee2sh please could you fill out the issue template.

  9. added this to the v6.10.2 Release milestone on Jan 19, 2026
  10. removed
    Status: Triage
    on Jan 19, 2026
  11. GestaltCaius commented on Jan 19, 2026

    @GestaltCaius

    Seeing the same behavior since version 6.10.x. 👋
    I've set allow_forking = false and forking = false but it does not change anything.

    I'm using version ~> 6.9.1 in the meantime. This one works 👍

  12. self-assigned this
    on Jan 19, 2026
  13. doughlass commented on Jan 19, 2026

    @doughlass

    Seeing the same behavior since version 6.10.x. 👋 I've set allow_forking = false and forking = false but it does not change anything.

    I'm using version ~> 6.9.1 in the meantime. This one works 👍

    What was your provider set to previously that caused it to break?

  14. sosoriov commented on Jan 20, 2026

    @sosoriov

    Seeing the same behavior since version 6.10.x. 👋 I've set allow_forking = false and forking = false but it does not change anything.

    I'm using version ~> 6.9.1 in the meantime. This one works 👍

    Same here, or almost the same, before the break I was using 6.9.1 and everything was working, after the provider upgrade it broke. My issue is that setting the provider to the 6.9.1 is not helping :(

  15. doughlass commented on Jan 20, 2026

    @doughlass

    Can confirm ~> 6.9.1 works

  16. smur89 commented on Jan 20, 2026

    @smur89

    FYI, I see the same issue for private non-org repositories

    I've opened a PR here

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

Metadata

Metadata

Assignees

Labels

Type: Bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions