Expected Behavior
apply change
Actual Behavior
error massage
Terraform Version
Terraform v1.10.5
Affected Resource(s)
github_repository_ruleset
Terraform Configuration Files
github_repository_ruleset
Steps to Reproduce
github_repository_ruleset
Debug Output
│ on main.tf line 6, in resource "github_repository_ruleset" "main_ruleset":
│ 6: resource "github_repository_ruleset" "main_ruleset" {
│
│ The plugin encountered an error, and failed to respond to the
│ plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may
│ contain more details.
╵
Stack trace from the terraform-provider-github_v6.11.1 plugin:
panic: interface conversion: interface {} is nil, not map[string]interface {}
goroutine 98 [running]:
github.com/integrations/terraform-provider-github/v6/github.expandRules({0xc00076a510?, 0x110f4bd?, 0x10?}, 0x0)
github.com/integrations/terraform-provider-github/v6/github/util_rules.go:344 +0x2fb2
github.com/integrations/terraform-provider-github/v6/github.resourceGithubRulesetObject(0xc000279b90, {0x0?, 0x0})
github.com/integrations/terraform-provider-github/v6/github/util_rules.go:118 +0x2c5
github.com/integrations/terraform-provider-github/v6/github.resourceGithubRepositoryRulesetCreate({0x12a59e0, 0xc000951260}, 0xc000279b90, {0xebf600?, 0xc00012e500})
github.com/integrations/terraform-provider-github/v6/github/resource_github_repository_ruleset.go:690 +0x85
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0xc0004c0c00, {0x12a5938, 0xc000462b70}, 0xc000279b90, {0xebf600, 0xc00012e500})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:849 +0x119
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc0004c0c00, {0x12a5938, 0xc000462b70}, 0xc000594f70, 0xc000279d40, {0xebf600, 0xc00012e500})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:980 +0xb47
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc00059c000, {0x12a5938?, 0xc000462a20?}, 0xc000015220)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:1499 +0x1085
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc0005a4000, {0x12a5938?, 0xc000397bf0?}, 0xc00011ee80)
github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:944 +0x3b9
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x10e91e0, 0xc0005a4000}, {0x12a5938, 0xc000397bf0}, 0xc00011ee00, 0x0)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:789 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000264200, {0x12a5938, 0xc000397b30}, 0xc000618060, 0xc0005921b0, 0x1a7aca8, 0x0)
google.golang.org/[email protected]/server.go:1431 +0x1036
google.golang.org/grpc.(*Server).handleStream(0xc000264200, {0x12a6278, 0xc0005a81a0}, 0xc000618060)
google.golang.org/[email protected]/server.go:1842 +0xb88
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/[email protected]/server.go:1061 +0x7f
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 83
google.golang.org/[email protected]/server.go:1072 +0x11d
Error: The terraform-provider-github_v6.11.1 plugin crashed!
This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.
exit status 1
Panic Output
│ on main.tf line 6, in resource "github_repository_ruleset" "main_ruleset":
│ 6: resource "github_repository_ruleset" "main_ruleset" {
│
│ The plugin encountered an error, and failed to respond to the
│ plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may
│ contain more details.
╵
Stack trace from the terraform-provider-github_v6.11.1 plugin:
panic: interface conversion: interface {} is nil, not map[string]interface {}
goroutine 98 [running]:
github.com/integrations/terraform-provider-github/v6/github.expandRules({0xc00076a510?, 0x110f4bd?, 0x10?}, 0x0)
github.com/integrations/terraform-provider-github/v6/github/util_rules.go:344 +0x2fb2
github.com/integrations/terraform-provider-github/v6/github.resourceGithubRulesetObject(0xc000279b90, {0x0?, 0x0})
github.com/integrations/terraform-provider-github/v6/github/util_rules.go:118 +0x2c5
github.com/integrations/terraform-provider-github/v6/github.resourceGithubRepositoryRulesetCreate({0x12a59e0, 0xc000951260}, 0xc000279b90, {0xebf600?, 0xc00012e500})
github.com/integrations/terraform-provider-github/v6/github/resource_github_repository_ruleset.go:690 +0x85
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0xc0004c0c00, {0x12a5938, 0xc000462b70}, 0xc000279b90, {0xebf600, 0xc00012e500})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:849 +0x119
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc0004c0c00, {0x12a5938, 0xc000462b70}, 0xc000594f70, 0xc000279d40, {0xebf600, 0xc00012e500})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:980 +0xb47
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc00059c000, {0x12a5938?, 0xc000462a20?}, 0xc000015220)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:1499 +0x1085
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc0005a4000, {0x12a5938?, 0xc000397bf0?}, 0xc00011ee80)
github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:944 +0x3b9
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x10e91e0, 0xc0005a4000}, {0x12a5938, 0xc000397bf0}, 0xc00011ee00, 0x0)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:789 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000264200, {0x12a5938, 0xc000397b30}, 0xc000618060, 0xc0005921b0, 0x1a7aca8, 0x0)
google.golang.org/[email protected]/server.go:1431 +0x1036
google.golang.org/grpc.(*Server).handleStream(0xc000264200, {0x12a6278, 0xc0005a81a0}, 0xc000618060)
google.golang.org/[email protected]/server.go:1842 +0xb88
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/[email protected]/server.go:1061 +0x7f
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 83
google.golang.org/[email protected]/server.go:1072 +0x11d
Error: The terraform-provider-github_v6.11.1 plugin crashed!
This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.
exit status 1
Code of Conduct
Expected Behavior
apply change
Actual Behavior
error massage
Terraform Version
Terraform v1.10.5
Affected Resource(s)
github_repository_ruleset
Terraform Configuration Files
Steps to Reproduce
github_repository_ruleset
Debug Output
Panic Output
Code of Conduct