-
Notifications
You must be signed in to change notification settings - Fork 860
Open
Labels
Status: TriageThis is being looked at and prioritizedThis is being looked at and prioritizedType: BugSomething isn't working as documentedSomething isn't working as documented
Description
Expected Behavior
successfully applied all the changes required
Actual Behavior
crashes while applying
Terraform Version
Terraform: ">= 1.2.0"
github = {
source = "integrations/github"
version = "~> 6.6.0"
}
Affected Resource(s)
- github repo
- github secrets
- github branch protection
- github variable
Terraform Configuration Files
terraform {
required_version = ">= 1.2.0"
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "4.0.0" # Use the latest stable version
}
aws = {
source = "hashicorp/aws"
version = "~> 5.63"
}
tls = {
source = "hashicorp/tls"
version = "~> 4.0"
}
template = {
source = "hashicorp/template"
version = "~> 2.0"
}
random = {
source = "hashicorp/random"
version = "~> 3.0"
}
github = {
source = "integrations/github"
version = "~> 6.6.0"
}
}
}
locals {
context = "ground"
environment = "prod"
region = var.region
name = "${local.context}-${local.environment}"
}
Steps to Reproduce
terraform apply
Debug Output
Plan: 5 to add, 6 to change, 5 to destroy.
╷
│ Error: Plugin did not respond
│
│ with github_repository_ruleset.app_main_branch_ruleset,
│ on 6.github.tf line 25, in resource "github_repository_ruleset" "app_main_branch_ruleset":
│ 25: resource "github_repository_ruleset" "app_main_branch_ruleset" {
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵
╷
│ Error: Request cancelled
│
│ with github_actions_variable.app_cloudfront_distribution_id,
│ on 6.github.tf line 86, in resource "github_actions_variable" "app_cloudfront_distribution_id":
│ 86: resource "github_actions_variable" "app_cloudfront_distribution_id" {
│
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Plugin did not respond
│
│ with github_actions_variable.app_frontend_bucket,
│ on 6.github.tf line 94, in resource "github_actions_variable" "app_frontend_bucket":
│ 94: resource "github_actions_variable" "app_frontend_bucket" {
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵
╷
│ Error: Plugin did not respond
│
│ with github_actions_secret.app_aws_access_key_id,
│ on 6.github.tf line 115, in resource "github_actions_secret" "app_aws_access_key_id":
│ 115: resource "github_actions_secret" "app_aws_access_key_id" {
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵
╷
│ Error: Plugin did not respond
│
│ with github_actions_secret.app_aws_access_secret_key,
│ on 6.github.tf line 123, in resource "github_actions_secret" "app_aws_access_secret_key":
│ 123: resource "github_actions_secret" "app_aws_access_secret_key" {
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵
Stack trace from the terraform-provider-github_v6.6.0 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x8 pc=0x10284d524]
goroutine 79 [running]:
github.com/integrations/terraform-provider-github/v6/github.resourceGithubRepositoryRulesetRead(0x14000523d80, {0x102a38840?, 0x1400044aa80?})
github.com/integrations/terraform-provider-github/v6/github/resource_github_repository_ruleset.go:580 +0x494
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0x102c2f9b0?, {0x102c2f9b0?, 0x140000d0a50?}, 0xd?, {0x102a38840?, 0x1400044aa80?})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:811 +0x130
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).RefreshWithoutUpgrade(0x140003fb7a0, {0x102c2f9b0, 0x140000d0a50}, 0x140002241a0, {0x102a38840, 0x1400044aa80})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:1117 +0x408
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadResource(0x1400037a708, {0x102c2f9b0?, 0x140000d0960?}, 0x14000054900)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:708 +0x5b8
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadResource(0x14000233a40, {0x102c2f9b0?, 0x140005d5e30?}, 0x140004c0690)
github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:783 +0x228
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadResource_Handler({0x102be8ca0, 0x14000233a40}, {0x102c2f9b0, 0x140005d5e30}, 0x14000523900, 0x0)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:482 +0x1c0
google.golang.org/grpc.(*Server).processUnaryRPC(0x1400019b000, {0x102c2f9b0, 0x140005d5da0}, {0x102c34268, 0x140002d4180}, 0x14000001b00, 0x140004e8ae0, 0x1032a5708, 0x0)
google.golang.org/[email protected]/server.go:1369 +0xb58
google.golang.org/grpc.(*Server).handleStream(0x1400019b000, {0x102c34268, 0x140002d4180}, 0x14000001b00)
google.golang.org/[email protected]/server.go:1780 +0xb20
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/[email protected]/server.go:1019 +0x8c
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 9
google.golang.org/[email protected]/server.go:1030 +0x13c
Error: The terraform-provider-github_v6.6.0 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.
Panic Output
Plan: 5 to add, 6 to change, 5 to destroy.
╷
│ Error: Plugin did not respond
│
│ with github_repository_ruleset.app_main_branch_ruleset,
│ on 6.github.tf line 25, in resource "github_repository_ruleset" "app_main_branch_ruleset":
│ 25: resource "github_repository_ruleset" "app_main_branch_ruleset" {
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵
╷
│ Error: Request cancelled
│
│ with github_actions_variable.app_cloudfront_distribution_id,
│ on 6.github.tf line 86, in resource "github_actions_variable" "app_cloudfront_distribution_id":
│ 86: resource "github_actions_variable" "app_cloudfront_distribution_id" {
│
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Plugin did not respond
│
│ with github_actions_variable.app_frontend_bucket,
│ on 6.github.tf line 94, in resource "github_actions_variable" "app_frontend_bucket":
│ 94: resource "github_actions_variable" "app_frontend_bucket" {
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵
╷
│ Error: Plugin did not respond
│
│ with github_actions_secret.app_aws_access_key_id,
│ on 6.github.tf line 115, in resource "github_actions_secret" "app_aws_access_key_id":
│ 115: resource "github_actions_secret" "app_aws_access_key_id" {
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵
╷
│ Error: Plugin did not respond
│
│ with github_actions_secret.app_aws_access_secret_key,
│ on 6.github.tf line 123, in resource "github_actions_secret" "app_aws_access_secret_key":
│ 123: resource "github_actions_secret" "app_aws_access_secret_key" {
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵
Stack trace from the terraform-provider-github_v6.6.0 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x8 pc=0x10284d524]
goroutine 79 [running]:
github.com/integrations/terraform-provider-github/v6/github.resourceGithubRepositoryRulesetRead(0x14000523d80, {0x102a38840?, 0x1400044aa80?})
github.com/integrations/terraform-provider-github/v6/github/resource_github_repository_ruleset.go:580 +0x494
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0x102c2f9b0?, {0x102c2f9b0?, 0x140000d0a50?}, 0xd?, {0x102a38840?, 0x1400044aa80?})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:811 +0x130
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).RefreshWithoutUpgrade(0x140003fb7a0, {0x102c2f9b0, 0x140000d0a50}, 0x140002241a0, {0x102a38840, 0x1400044aa80})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:1117 +0x408
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadResource(0x1400037a708, {0x102c2f9b0?, 0x140000d0960?}, 0x14000054900)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:708 +0x5b8
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadResource(0x14000233a40, {0x102c2f9b0?, 0x140005d5e30?}, 0x140004c0690)
github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:783 +0x228
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadResource_Handler({0x102be8ca0, 0x14000233a40}, {0x102c2f9b0, 0x140005d5e30}, 0x14000523900, 0x0)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:482 +0x1c0
google.golang.org/grpc.(*Server).processUnaryRPC(0x1400019b000, {0x102c2f9b0, 0x140005d5da0}, {0x102c34268, 0x140002d4180}, 0x14000001b00, 0x140004e8ae0, 0x1032a5708, 0x0)
google.golang.org/[email protected]/server.go:1369 +0xb58
google.golang.org/grpc.(*Server).handleStream(0x1400019b000, {0x102c34268, 0x140002d4180}, 0x14000001b00)
google.golang.org/[email protected]/server.go:1780 +0xb20
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/[email protected]/server.go:1019 +0x8c
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 9
google.golang.org/[email protected]/server.go:1030 +0x13c
Error: The terraform-provider-github_v6.6.0 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.
Code of Conduct
- I agree to follow this project's Code of Conduct
gdurandvadas, staffanf, nnellanspdl and cnagamor
Metadata
Metadata
Assignees
Labels
Status: TriageThis is being looked at and prioritizedThis is being looked at and prioritizedType: BugSomething isn't working as documentedSomething isn't working as documented
Type
Projects
Status
🆕 Triage