You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: v6.8.2 terraform validate fails on the github provider #2903
```╷
│ Error: InternalValidate
│
│ with provider["registry.terraform.io/integrations/github"],
│ on providers.tf line 7, in provider "github":
│ 7: provider "github" {
│
│ Internal validation of the provider failed! This is always a bug
│ with the provider itself, and not a user issue. Please report
│ this bug:
│
│ resource github_actions_secret: All fields are ForceNew or Computed w/out Optional, Update is superfluous`
Actual Behavior
terraform validate
Success! The configuration is valid.
Terraform Version
Terraform v1.13.15
Linux
Github provider version v6.8.2
Affected Resource(s)
terraform validate command
Terraform Configuration Files
versions.tf file
github={
source ="integrations/github"
version ="~> 6"
}
Steps to Reproduce
terraform validate
Debug Output
Panic Output
Code of Conduct
I agree to follow this project's Code of Conduct
Reacted by Jan-Philip Loos, Brian Atkinson, BillSchenk, Danny Lai, Ryuzo Yamamoto, Maple, ToshY, Alexander Scholz, Samuel, Adam Smith and 68 more
Reacted by ToshY, Alexander Scholz, Victor M. Varela, Emmanuel, Adrian Wyssmann, eberkut, Kieran Pilkington, Jürgen W, Martin Tamashiro, Vineet Raja and 8 more
Error: InternalValidate
with provider["registry.terraform.io/integrations/github"],
on provider.tf line 57, in provider "github":
57: provider "github" {
Internal validation of the provider failed! This is always a bug
with the provider itself, and not a user issue. Please report
this bug:
resource github_actions_secret: All fields are ForceNew or Computed w/out
Optional, Update is superfluous
Hello, I’m experiencing the same issue on my side during the terraform plan. Have you received any updates on this issue and when it will be resolved? Thank you in advance.
Error: InternalValidate
│
│ with provider["registry.terraform.io/integrations/github"],
│ on provider_github_override.tf line 2, in provider "github":
│ 2:provider"github" {
│
│ Internal validation of the provider failed! This is always a bug
│ with the provider itself, and not a user issue. Please report
│ this bug:
│
╵
exit status 1
Initializing provider plugins...
- Finding integrations/github versions matching "6.8.1"...
- Finding latest version of hashicorp/github...
- Installing integrations/github v6.8.1...
- Installed integrations/github v6.8.1 (signed by a HashiCorp partner, key ID 38027F80D7FD5FB2)
- Installing hashicorp/github v6.8.2...
- Installed hashicorp/github v6.8.2 (signed by HashiCorp)
Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://developer.hashicorp.com/terraform/cli/plugins/signing
Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.
Forget the above, use source = "hashicorp/github" not source = "integrations/github" like the docs say.
╷
│ Error: InternalValidate
│
│ with provider["registry.opentofu.org/hashicorp/github"],
│ on user-validation.tf line 9, in provider "github":
│ 9: provider "github" {
│
│ Internal validation of the provider failed! This is always a bug
│ with the provider itself, and not a user issue. Please report
│ this bug:
│
│ resource github_actions_secret: All fields are ForceNew or Computed w/out
│ Optional, Update is superfluous
╵
Error: Process completed with exit code 1.
For those, where pinning to version 6.8.1 is not working or using lower versions and still seeing this issue -
Try terraform state replace-provider hashicorp/github integrations/github
Or inspect your state to look for resources using hashicorp/github as a provider and make configuration changes to use integrations/github as a provider instead
Error: Invalid provider configuration
Provider "registry.terraform.io/hashicorp/github" requires explicit
configuration. Add a provider block to the root module and configure the
provider's required arguments as described in the provider documentation.
Error: InternalValidate
with provider["registry.terraform.io/hashicorp/github"],
on <empty> line 0:
(source code not available)
Internal validation of the provider failed! This is always a bug
with the provider itself, and not a user issue. Please report
this bug:
resource github_actions_secret: All fields are ForceNew or Computed w/out
Optional, Update is superfluous
Firstly, I want to apologize for the trouble the patch has caused. This particular issue has plagued our last few deployments and it originated from a very old PR being introduced and released which changed how we handle secrets.
We have about 4 different implementations of how we handle secrets scoped to specific areas. These various implementations have made it difficult to determining what is idiomatic for this provider given it's been done differently in the resources here:
I am working right now to reconcile these and restore our secrets handling to it's original state and patch things up so that we can finally move on to more important things such as this and this.
Thank you for your patience, as @eyalgal has pointed out in the discussions I am working through these things as the single maintainer (with an amazing community working on this as well), and while I acknowledge that things will break sometimes I really dislike impacting things like this.
Note, a CI step has been added so that we can detect things like this in the future before they go out the door.
If anyone has time please verify using your own configuration. This change set was validated locally for all secrets resources listed above using distinct configs for each and also validated using unit tests to force creation.
Additionally, I have written up an issue to address the various issues in our implementation (based on @stevehipwell's idea). Please comment on it and suggest refinements if you're interested.
Reacted by Marc Beinder, Pascal Hofmann, Greg Korba, Alexander Scholz and Fred Blaise
I can also confirm on my side that it works fine with version v6.8.3— we no longer get the error.
Error: InternalValidate
│
│ with provider["registry.terraform.io/integrations/github"],
│ on provider_github_override.tf line 2, in provider "github":
│ 2:provider"github" {
│
│ Internal validation of the provider failed! This is always a bug
│ with the provider itself, and not a user issue. Please report
│ this bug:
│
╵
exit status 1
Activity
XDanny322 commentedon Nov 15, 2025
At least for me, pinning back to 6.8.1 works.
ptesny commentedon Nov 15, 2025
same problem with 6.8.2
ViacheslavKudinov commentedon Nov 15, 2025
Hi @nickfloyd
can we catch it somehow via some validation on push to main or release event/else ?
MohamedSIDHA commentedon Nov 15, 2025
Hello, I’m experiencing the same issue on my side during the
terraform plan. Have you received any updates on this issue and when it will be resolved? Thank you in advance.KieranP commentedon Nov 16, 2025
Can confirm the same. Works with 6.8.1, broken in 6.8.2
kamal-shaker commentedon Nov 17, 2025
How do you force it to use 6.8.1?
Terraform always want to force 6.8.2:
Forget the above, use
source = "hashicorp/github"notsource = "integrations/github"like the docs say.ViacheslavKudinov commentedon Nov 17, 2025
HI @kamal-shaker
It seems https://registry.terraform.io/providers/hashicorp/github/latest is some "proxy" of
integrations/githubfrom where is actualy code of provider is fetched.Not sure how it (this proxy magic) actually works, but repo https://github.com/hashicorp/terraform-provider-github is archived and current GitHub provider is not owned by Hashicorp.
It could be that it was done for backward compatibility, that "hashicorp" version is pointed to https://registry.terraform.io/providers/integrations/github
cvs79 commentedon Nov 17, 2025
Same error with version 6.6.0
amar-hoag commentedon Nov 17, 2025
For those, where pinning to version 6.8.1 is not working or using lower versions and still seeing this issue -
Try
terraform state replace-provider hashicorp/github integrations/githubOr inspect your state to look for resources using
hashicorp/githubas a provider and make configuration changes to useintegrations/githubas a provider insteadvinzenzstampf commentedon Nov 17, 2025
terraform {
required_version = "~> 1.8"
backend "gcs" {
bucket = "xxx"
prefix = "xxxxxx"
}
github = {
source = "integrations/github"
version = "6.7.5"
}
github2 = {
source = "hashicorp/github"
version = "6.7.5"
}
}
}
provider "github" {
token = var.gh-token
owner = "XXX"
}
provider "github2" {
token = var.gh-token
owner = "XXX"
}
for some reason this works ... (just giving a warning)
2 remaining items
pidumenk commentedon Nov 17, 2025
The same issue happens on our side:
nickfloyd commentedon Nov 17, 2025
Firstly, I want to apologize for the trouble the patch has caused. This particular issue has plagued our last few deployments and it originated from a very old PR being introduced and released which changed how we handle secrets.
We have about 4 different implementations of how we handle secrets scoped to specific areas. These various implementations have made it difficult to determining what is idiomatic for this provider given it's been done differently in the resources here:
I am working right now to reconcile these and restore our secrets handling to it's original state and patch things up so that we can finally move on to more important things such as this and this.
Thank you for your patience, as @eyalgal has pointed out in the discussions I am working through these things as the single maintainer (with an amazing community working on this as well), and while I acknowledge that things will break sometimes I really dislike impacting things like this.
Note, a CI step has been added so that we can detect things like this in the future before they go out the door.
👀 Reviews on this would be appreciated! ❤️
nickfloyd commentedon Nov 17, 2025
Fix has been released in v6.8.3.
If anyone has time please verify using your own configuration. This change set was validated locally for all secrets resources listed above using distinct configs for each and also validated using unit tests to force creation.
Additionally, I have written up an issue to address the various issues in our implementation (based on @stevehipwell's idea). Please comment on it and suggest refinements if you're interested.
pascal-hofmann commentedon Nov 17, 2025
Thanks for the fix and release!
The
github_actions_secretissue is gone with v6.8.3 in our configuration. (We do not use the other secret resources.)MohamedSIDHA commentedon Nov 18, 2025
I can also confirm on my side that it works fine with version v6.8.3— we no longer get the error.
Thank you so much, I really appreciate it.
Wirone commentedon Nov 18, 2025
I can confirm v6.8.3 works correctly for us, while v6.8.2 had issue reported here. Thank you for quick reaction and the fix ❤️.
louishorsley commentedon Nov 19, 2025
I also can confirm that v6.8.3 works for us. We no longer have the
InternalValidateerror seen with v6.8.2. Thank you for the quick fix and release!