Description
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:
Further validation from recent deployments (within the last month) confirms that resources were provisioned as expected:
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.
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