Skip to content

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

@joshuamkite-nfb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: BugSomething isn't working as documented

    Type

    No type

    Projects

    Status

    In Review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions