Skip to content

[BUG]: State upgrade fails for github_actions_secret from v6.10.x to v6.11.x #3221

@PatrickHeneise

Description

@PatrickHeneise

Description

Upgrading from integrations/github v6.10.2 to v6.11.1 fails with a schema version mismatch error for github_actions_secret resources.

Terraform Version and Provider Version

  • Terraform: 1.x (via Terraform Cloud)
  • Provider from: v6.10.2
  • Provider to: v6.11.1

Affected Resource(s)

  • github_actions_secret

Expected Behavior

The StateUpgraders should automatically migrate state from schema version 1 (v6.10.x) to schema version 2 (v6.11.x).

Actual Behavior

Error saving the state: schema version 1 for github_actions_secret.GRAPHQL_BUILD_TOKEN in state does not match version 2 from the provider

The state was not saved. No items were removed from the persisted
state. No backup was created since no modification occurred. Please
resolve the issue above and try again.

Steps to Reproduce

  1. Have github_actions_secret resources managed in state with provider v6.10.2
  2. Upgrade provider constraint to allow v6.11.x
  3. Run terraform plan or terraform apply

Context

Workaround

Pin provider to ~> 6.10.2 to avoid the broken state migration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions