-
Notifications
You must be signed in to change notification settings - Fork 927
Labels
Type: BugSomething isn't working as documentedSomething isn't working as documented
Milestone
Description
Expected Behavior
When creating github_actions_environment_variable and github_environment_secret I expect terraform to track the state and create the resources successfully.
note:
since I could not find a better place in the form to put this: I assume this bug is highly related to #2843
Actual Behavior
The resources are created but after applying the plan terraform outputs:
provider "module.old_main.provider["registry.terraform.io/integrations/github"]" produced
│ an unexpected new value: Root object was present, but now absent.
Terraform Version
Terraform v1.14.3
on linux_amd64
...
- provider registry.terraform.io/integrations/github v6.9.1
Affected Resource(s)
- github_actions_environment_secret
- github_actions_environment_variable
Terraform Configuration Files
terraform {
required_providers {
github = {
source = "integrations/github"
version = "6.9.1"
}
}
}
provider "github" {}
resource "github_repository_environment" "environment" {
repository = "my-repo"
environment = "default"
}
resource "github_actions_environment_secret" "deployment_key" {
repository = "my-repo"
environment = github_repository_environment.environment.environment
secret_name = "DEPLOYMENT_PRIVATE_KEY"
plaintext_value = "my-super-secret-key"
}
Steps to Reproduce
run terraform apply to create the resources.
Debug Output
....
# module.old_main.github_actions_environment_secret.deployment_key will be created
+ resource "github_actions_environment_secret" "deployment_key" {
+ created_at = (known after apply)
+ environment = "default"
+ id = (known after apply)
+ plaintext_value = (sensitive value)
+ repository = "my-repo"
+ secret_name = "DEPLOYMENT_PRIVATE_KEY"
+ updated_at = (known after apply)
}
...
Panic Output
...
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to module.old_main.github_actions_environment_secret.deployment_key, provider "module.old_main.provider[\"registry.terraform.io/integrations/github\"]" produced an
│ unexpected new value: Root object was present, but now absent.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
Type: BugSomething isn't working as documentedSomething isn't working as documented