integrations / integrations/terraform-provider-github
[BUG]: Error: Provider produced inconsistent result after apply when applying github_repository_file resource
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 1k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 8
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
```hcl
```
### 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
```shell
```
### Panic Output
```shell
```
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Contributor guide
Assessment
This issue has not been assessed yet.