Skip to content

[BUG]: InternalValidate error in github_actions_secret resource (v6.7.2) #2839

Closed

Description

@joshuamkite-nfb

Expected Behavior

Provider should initialize successfully and allow terraform plan/apply operations with github_actions_secret resources.

Actual Behavior

Provider fails during initialization with an InternalValidate error:

Error: InternalValidate
with provider["registry.terraform.io/integrations/github"],
on provider.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:

resource github_actions_secret: No Update defined, must set ForceNew on:
[]string{"destroy_on_drift"}

Terraform Version

Terraform v1.8.2
on linux_amd64

  • provider registry.terraform.io/integrations/github v6.7.2

Affected Resource(s)

  • github_actions_secret

Terraform Configuration Files

terraform {
  required_providers {
    github = {
      source  = "integrations/github"
      version = "~> 6.0"
    }
  }
}

resource "github_actions_secret" "this" {
  for_each        = var.secrets
  repository      = github_repository.this.name
  secret_name     = each.key
  encrypted_value = each.value
}

Steps to Reproduce

  1. Use GitHub provider version 6.7.2
  2. Define a github_actions_secret resource in your configuration
  3. Run terraform init
  4. Run terraform plan

Debug Output

Pin to version 6.7.1 or earlier:

version = "~> 6.7.0, < 6.7.2"

Panic Output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    Type: Bug
    Status: Triage
    on Oct 29, 2025
  2. GerardSoleCa commented on Oct 29, 2025

    @GerardSoleCa

    I'm experiencing the same issue.

  3. srgustafson8 commented on Oct 29, 2025

    @srgustafson8
    Contributor

    Duplicate of #2838 I believe

  4. ypodo commented on Oct 29, 2025

    @ypodo

    also here
    │ Error: InternalValidate
    │
    │ with provider["registry.terraform.io/hashicorp/github"],
    │ on 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: No Update defined, must set ForceNew on:
    │ []string{"destroy_on_drift"}
    ╵
    ╷
    │ 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.

  5. fivesheep commented on Oct 29, 2025

    @fivesheep

    please revoke this version from terraform provider registry. it's impacting everyone

  6. srgustafson8 commented on Oct 30, 2025

    @srgustafson8
    Contributor

    @nickfloyd as the releaser of 6.7.3 - are you able to address this? thank you

  7. armyofda12mnkeys commented on Oct 30, 2025

    @armyofda12mnkeys

    Was this fixed? i noticed our Terraform's were failing yesterday in the morning/afternoon, but suddenly later in the afternoon (like 5-6pm EST) yesterday they were working again without me updating the github provider settings for Terraform.

  8. nickfloyd commented on Oct 30, 2025

    @nickfloyd
    Contributor

    please revoke this version from terraform provider registry. it's impacting everyone

    @fivesheep So our policy and what the Terraform repository suggests is that we roll forward. If we delete tags or submit a request to revoke a release it can cause issues. Apologies for the trouble I know that can be frustrating. We're doing our best to get things stabilized and definitely appreciate the paitence.

  9. nickfloyd commented on Oct 30, 2025

    @nickfloyd
    Contributor

    This issue should be fixed with v6.7.3

  10. moved this from Backlog to In Review in Terraform Provideron Oct 30, 2025
  11. zepeng811 commented on Oct 31, 2025

    @zepeng811
    Contributor

    @nickfloyd I'm still seeing similar issue in v6.7.4, but with slightly different error message than the one posted in the original issue.

    ╷
    │ Error: InternalValidate
    │ 
    │   with provider["registry.terraform.io/integrations/github"],
    │   on _init.tf line 33, in provider "github":
    │   33: 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_organization_secret: All fields are ForceNew or
    │ Computed w/out Optional, Update is superfluous
    │ resource github_actions_secret: All fields are ForceNew or Computed w/out
    │ Optional, Update is superfluous
    ╵
    

    rolling back to v6.7.0 fixes the error.

  12. eyalgal commented on Nov 3, 2025

    @eyalgal
    Member

    This issue should be fixed with v6.7.5

  13. joshuamkite-nfb commented on Nov 5, 2025

    @joshuamkite-nfb
    Author

    so if there is a new release that addresses this should this not be closed?

  14. moved this from In Review to Done in Terraform Provideron Nov 5, 2025
  15. eyalgal commented on Nov 6, 2025

    @eyalgal
    Member

    I just wanted to make sure you had a chance to verify that the fix works before closing the issue. I’ll go ahead and close it now.

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

    Status: TriageType: Bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions