Skip to content

[BUG]: 422 error for repository creation with internal visibility #2766

Closed

Description

@rbalahadia-cambridge

Expected Behavior

It should create the repository with no issues.

Actual Behavior

422 Failed to update visibility. A previous repository operation is still in progress. []

Terraform Version

Terraform v1.13.3

Affected Resource(s)

  • github_repository

Terraform Configuration Files

resource "github_repository" "new_repo" {
  name        = var.repo_name
  description = var.repo_description
  visibility = "internal"
  template {
    owner                = "owner"
    repository           = "repo_name"
    include_all_branches = true
  }
  lifecycle {
    ignore_changes = [visibility, description, topics, homepage_url]
  }
}

Steps to Reproduce

terraform apply

Debug Output

422 Failed to update visibility. A previous repository operation is still in progress. []

Panic Output

422 Failed to update visibility. A previous repository operation is still in progress. []

Code of Conduct

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

Activity

  1. added
    Type: Bug
    Status: Triage
    on Oct 2, 2025
  2. moved this from Backlog to In Progress in Terraform Provideron Jan 7, 2026
  3. deiga commented on Feb 26, 2026

    @deiga
    Collaborator

    Hey @rbalahadia-cambridge
    Are you still encountering this issue? It's probably resolved by #3123

  4. rbalahadia-cambridge commented on Feb 26, 2026

    @rbalahadia-cambridge
    Author

    Hey @rbalahadia-cambridge
    Are you still encountering this issue? It's probably resolved by #3123

    Thanks will check :)

  5. moved this from In Progress to Done in Terraform Provideron Feb 26, 2026
  6. moved this from 🆕 Triage to ✅ Done in 🧰 Octokit Activeon Feb 26, 2026
  7. gwendal-lecren commented on Jun 22, 2026

    @gwendal-lecren

    Ran into this issue today with 6.12.0 provider version.

  8. deiga commented on Jun 22, 2026

    @deiga
    Collaborator

    @gwendal-lecren Sorry to hear that! Could you create a new issue, link this one and fill out the form so that we have enough information to debug this 🙏

  9. gwendal-lecren commented on Jun 22, 2026

    @gwendal-lecren

    Hello @deiga thanks for getting back to me. I haven't created a new one since there is already that one:
    #3302

    Happy to create a new one if needed, but that would be a duplication basically.

    Thanks!

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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions