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)
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
- Have
github_actions_secret resources managed in state with provider v6.10.2
- Upgrade provider constraint to allow v6.11.x
- Run
terraform plan or terraform apply
Context
Workaround
Pin provider to ~> 6.10.2 to avoid the broken state migration.
Description
Upgrading from
integrations/githubv6.10.2 to v6.11.1 fails with a schema version mismatch error forgithub_actions_secretresources.Terraform Version and Provider Version
Affected Resource(s)
github_actions_secretExpected Behavior
The
StateUpgradersshould automatically migrate state from schema version 1 (v6.10.x) to schema version 2 (v6.11.x).Actual Behavior
Steps to Reproduce
github_actions_secretresources managed in state with provider v6.10.2terraform planorterraform applyContext
github_actions_secretfromMigrateStatetoStateUpgraders(schema v0→v1)Workaround
Pin provider to
~> 6.10.2to avoid the broken state migration.