You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: allow_forking option breaks repo creation when the org doesn't allow forking #3088
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
Reacted by Vincent Tjianattan, Cel Pynenborg, Chee Lim, Karol Burczyński, Prabhu Mounagurusamy, Tim Searle, joseluisjimenez1, Sebastian Poxhofer, U-ways, Sebastian Bresin and 10 more
👋 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! 🚀
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
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.
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 :(
Reacted by itamar-maron, doughlass and Dennis Acar
Activity
github-actions commentedon Jan 16, 2026
👋 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! 🚀deiga commentedon Jan 17, 2026
Is this determined by the
MembersCanForkPrivateReposattribute of the Organization? If yes, it could be stored in config.go when we setIsOrganizationinstead of creating a new attributelee2sh commentedon Jan 17, 2026
That's a great idea. I've made changes to the pr to reflect your suggestion.
itamar-maron commentedon Jan 19, 2026
+1
Seeing the same behavior.
I am assuming fix is expected in the next couple of days based off @lee2sh response?
sosoriov commentedon Jan 19, 2026
+1
Seeing the same behavior.
I hope this is fixed soon 🤞
lebenitza commentedon Jan 19, 2026
I think this was introduced by this PR: #3067
stevehipwell commentedon Jan 19, 2026
@lee2sh please could you fill out the issue template.
GestaltCaius commentedon Jan 19, 2026
Seeing the same behavior since version
6.10.x. 👋I've set
allow_forking = falseandforking = falsebut it does not change anything.I'm using version
~> 6.9.1in the meantime. This one works 👍doughlass commentedon Jan 19, 2026
What was your provider set to previously that caused it to break?
sosoriov commentedon Jan 20, 2026
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 :(
doughlass commentedon Jan 20, 2026
Can confirm
~> 6.9.1workssmur89 commentedon Jan 20, 2026
FYI, I see the same issue for private non-org repositories
I've opened a PR here