Skip to content

[BUG]: v6.8.2 terraform validate fails on the github provider #2903

Closed

Description

@mkendzior

Expected Behavior

This is the error
`terraform validate

```╷
│ 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

Activity

  1. added
    Type: Bug
    Status: Triage
    on Nov 15, 2025
  2. XDanny322 commented on Nov 15, 2025

    @XDanny322

    At least for me, pinning back to 6.8.1 works.

    terraform {
      required_version = ">= 1.8.1" # tofu
      required_providers {
        github = {
          source  = "hashicorp/github"
          version = "6.8.1"
        }
      }
    }
  3. ptesny commented on Nov 15, 2025

    @ptesny

    same problem with 6.8.2

    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
    
  4. ViacheslavKudinov commented on Nov 15, 2025

    @ViacheslavKudinov
    Contributor

    Hi @nickfloyd
    can we catch it somehow via some validation on push to main or release event/else ?

  5. MohamedSIDHA commented on Nov 15, 2025

    @MohamedSIDHA

    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
  6. KieranP commented on Nov 16, 2025

    @KieranP

    Can confirm the same. Works with 6.8.1, broken in 6.8.2

  7. moved this from Backlog to In Progress in Terraform Provideron Nov 16, 2025
  8. kamal-shaker commented on Nov 17, 2025

    @kamal-shaker

    How do you force it to use 6.8.1?

    
    terraform {
      required_version = ">= 1.12"
      required_providers {
        github = {
          source  = "integrations/github"
          version = "6.8.1"
        }
      }
    }
    

    Terraform always want to force 6.8.2:

    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.

  9. ViacheslavKudinov commented on Nov 17, 2025

    @ViacheslavKudinov
    Contributor

    HI @kamal-shaker
    It seems https://registry.terraform.io/providers/hashicorp/github/latest is some "proxy" of integrations/github from 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.

    Image

    It could be that it was done for backward compatibility, that "hashicorp" version is pointed to https://registry.terraform.io/providers/integrations/github

  10. cvs79 commented on Nov 17, 2025

    @cvs79

    Same error with version 6.6.0

    ╷
    │ 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.
    
  11. amar-hoag commented on Nov 17, 2025

    @amar-hoag

    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

  12. vinzenzstampf commented on Nov 17, 2025

    @vinzenzstampf

    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)

  13. 2 remaining items

  14. pidumenk commented on Nov 17, 2025

    @pidumenk

    The same issue happens on our side:

    terraform {
      required_providers {
        github = {
          source  = "integrations/github"
          version = "4.25.0"
        }
        aws = {
          source  = "hashicorp/aws"
          version = "5.100.0"
        }
      }
    }
    
    
    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
    
  15. nickfloyd commented on Nov 17, 2025

    @nickfloyd
    Contributor

    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:

    resource_github_actions_environment_secret.go
    resource_github_actions_secret.go
    resource_github_actions_organization_secret.go
    resource_github_dependabot_organization_secret.go
    resource_github_codespaces_organization_secret.go
    resource_github_codespaces_user_secret.go
    

    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! ❤️

  16. nickfloyd commented on Nov 17, 2025

    @nickfloyd
    Contributor

    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.

  17. pascal-hofmann commented on Nov 17, 2025

    @pascal-hofmann
    Contributor

    Thanks for the fix and release!

    The github_actions_secret issue is gone with v6.8.3 in our configuration. (We do not use the other secret resources.)

  18. MohamedSIDHA commented on Nov 18, 2025

    @MohamedSIDHA

    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

    Thank you so much, I really appreciate it.

  19. Wirone commented on Nov 18, 2025

    @Wirone

    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 ❤️.

  20. removed
    Status: Triage
    on Nov 18, 2025
  21. moved this from In Progress to In Review in Terraform Provideron Nov 18, 2025
  22. louishorsley commented on Nov 19, 2025

    @louishorsley

    I also can confirm that v6.8.3 works for us. We no longer have the InternalValidate error seen with v6.8.2. Thank you for the quick fix and release!

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: Bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions