Skip to content

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

Open
@LiamLogan1996

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: BugSomething isn't working as documented

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions