From 526c973d7a4ee1510856e28139ff513c9cc16a39 Mon Sep 17 00:00:00 2001 From: Mohamad Choupan Date: Sun, 22 Dec 2024 23:37:44 +0330 Subject: [PATCH] feat: update common columns: --- steampipe-plugin-github/github/common_column.go | 2 +- steampipe-plugin-github/github/plugin.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/steampipe-plugin-github/github/common_column.go b/steampipe-plugin-github/github/common_column.go index ec524d80..4bafa34d 100644 --- a/steampipe-plugin-github/github/common_column.go +++ b/steampipe-plugin-github/github/common_column.go @@ -14,7 +14,7 @@ import ( func commonColumns(c []*plugin.Column) []*plugin.Column { return append(c, []*plugin.Column{ { - Name: "platform_account_id", + Name: "platform_integration_id", Type: proto.ColumnType_STRING, Description: "The Platform Account ID in which the resource is located.", Transform: transform.FromField("IntegrationID"), diff --git a/steampipe-plugin-github/github/plugin.go b/steampipe-plugin-github/github/plugin.go index 73521a02..6d531357 100644 --- a/steampipe-plugin-github/github/plugin.go +++ b/steampipe-plugin-github/github/plugin.go @@ -77,18 +77,18 @@ func Plugin(ctx context.Context) *plugin.Plugin { opengovernanceTable := false for _, col := range table.Columns { - if col != nil && col.Name == "platform_account_id" { + if col != nil && col.Name == "platform_integration_id" { opengovernanceTable = true } } if opengovernanceTable { if table.Get != nil { - table.Get.KeyColumns = append(table.Get.KeyColumns, plugin.OptionalColumns([]string{"platform_account_id", "platform_resource_id"})...) + table.Get.KeyColumns = append(table.Get.KeyColumns, plugin.OptionalColumns([]string{"platform_integration_id", "platform_resource_id"})...) } if table.List != nil { - table.List.KeyColumns = append(table.List.KeyColumns, plugin.OptionalColumns([]string{"platform_account_id", "platform_resource_id"})...) + table.List.KeyColumns = append(table.List.KeyColumns, plugin.OptionalColumns([]string{"platform_integration_id", "platform_resource_id"})...) } } }