-
Notifications
You must be signed in to change notification settings - Fork 948
[BUG]: GitHub provider version 6.0+ fails again with "This organization does not allow private repository forking []" #3159
Description
Expected Behavior
I noticed that new versions (v6.11.0) were released around 12 hours ago. With this release, the old issue “This organization does not allow private repository forking” - has resurfaced.
The expected behavior is that this error should not occur when allow_forking is set to false.
Actual Behavior
However, even using 6.11.0 provider versions, the error still occurs, despite the fact that allow_forking explicitly set to false.
Error: PATCH https://api.github.com/repos/<ORGANIZATION>/partner-price-komparator: 422 This organization does not allow private repository forking []
with module.github_repository["partner-price-komparator"].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.
# module.github_repository["partner-price-komparator"].github_repository.this will be created
+ resource "github_repository" "this" {
+ allow_auto_merge = false
+ allow_forking = false
+ allow_merge_commit = true
+ allow_rebase_merge = true
+ allow_squash_merge = true
Terraform Version
Terrafrom v1.14.3
on linux_amd64
provider registry.terraform.io/integrations/github v6.0+
Affected Resource(s)
- github_repository
Terraform Configuration Files
Steps to Reproduce
Set the GitHub provider version to 6.0+ and allow_forking option to false.
Run terraform plan on an existing github_repository configuration.
Run terraform apply.
Debug Output
Panic Output
Code of Conduct
- I agree to follow this project's Code of Conduct