Skip to content

[BUG]: Error: Provider produced inconsistent result after apply when applying github_repository_file resource #2655

In review

Description

@LiamLogan1996

Expected Behavior

When deploying a GitHub repository file via github_repository_file, we expect the files to be correctly injected into the repository's main branch. This functionality has remained stable for the past one to two years; however, we are now encountering provider-related issues specifically at the apply stage.

The deployment mechanism is illustrated below, demonstrating the use of github_repository_file to manage repository files:

Image

Further validation from recent deployments (within the last month) confirms that resources were provisioned as expected:

Image
Image
Image

Actual Behavior

We are encountering widespread inconsistencies within our platform, specifically related to Terraform. The error "Provider produced inconsistent result after apply" has appeared frequently across our Terraform estate, but exclusively affecting the github_repository_file resource.

Image

While this issue has historically occurred at a low frequency (approximately 1 in 10 deployments), the past 3–5 days have seen a significant spike in occurrences, now failing 8 out of 10 times. The inconsistent nature of the error suggests an underlying provider issue requiring further investigation.

Terraform Version

Terraform version 1.11.4

Github Provider Version 6.6.0

Affected Resource(s)

  • github_repository_file

Terraform Configuration Files

Steps to Reproduce

Create a basic tf file which will simply create a github repository and once created, make use of the github_repository_file resource to inject files into main/master

terraform plan
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 May 8, 2025
  2. LiamLogan1996 commented on May 8, 2025

    @LiamLogan1996
    Author

    If any further information is required - Please let me know and I am happy to supply it.

  3. moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Activeon Jun 3, 2025
  4. deiga commented on Jan 4, 2026

    @deiga
    Collaborator

    This is possibly an issue with using the Read function at the end of Create in the resource

  5. moved this from Backlog to In Progress in Terraform Provideron Jan 7, 2026
  6. removed
    Status: Triage
    on Jul 3, 2026
  7. added theissue type on Jul 22, 2026
  8. moved this from In Progress to In Review in Terraform Provideron Nov 27, 2026
  9. added this to the v6.14.0 milestone on Nov 27, 2026
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

    Type: Bugr/repository_file

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions