diff --git a/provider/describer/workflow.go b/provider/describer/workflow.go index b2f2c8fb..fb03100e 100644 --- a/provider/describer/workflow.go +++ b/provider/describer/workflow.go @@ -82,7 +82,16 @@ func GetRepositoryWorkflows(ctx context.Context, githubClient GitHubClient, stre Name: workflow.GetName(), Description: JSONAllFieldsMarshaller{ Value: model.WorkflowDescription{ - Workflow: workflow, + ID: workflow.ID, + NodeID: workflow.NodeID, + Name: workflow.Name, + Path: workflow.Path, + State: workflow.State, + CreatedAt: workflow.CreatedAt, + UpdatedAt: workflow.UpdatedAt, + URL: workflow.URL, + HTMLURL: workflow.HTMLURL, + BadgeURL: workflow.BadgeURL, RepositoryFullName: repoFullName, WorkFlowFileContent: content, WorkFlowFileContentJson: fileContent, @@ -166,7 +175,16 @@ func GetRepositoryWorkflow(ctx context.Context, githubClient GitHubClient, organ Name: workflow.GetName(), Description: JSONAllFieldsMarshaller{ Value: model.WorkflowDescription{ - Workflow: workflow, + ID: workflow.ID, + NodeID: workflow.NodeID, + Name: workflow.Name, + Path: workflow.Path, + State: workflow.State, + CreatedAt: workflow.CreatedAt, + UpdatedAt: workflow.UpdatedAt, + URL: workflow.URL, + HTMLURL: workflow.HTMLURL, + BadgeURL: workflow.BadgeURL, RepositoryFullName: repoFullName, WorkFlowFileContent: content, WorkFlowFileContentJson: fileContent, diff --git a/provider/model/model.go b/provider/model/model.go index ac0b86fa..3df7efaf 100755 --- a/provider/model/model.go +++ b/provider/model/model.go @@ -683,7 +683,16 @@ type UserDescription struct { } type WorkflowDescription struct { - *github.Workflow + ID *int64 + NodeID *string + Name *string + Path *string + State *string + CreatedAt *github.Timestamp + UpdatedAt *github.Timestamp + URL *string + HTMLURL *string + BadgeURL *string RepositoryFullName string WorkFlowFileContent string WorkFlowFileContentJson *github.RepositoryContent diff --git a/steampipe-plugin-github/github/table_github_workflow.go b/steampipe-plugin-github/github/table_github_workflow.go index 2aa0c58e..c3ef0270 100644 --- a/steampipe-plugin-github/github/table_github_workflow.go +++ b/steampipe-plugin-github/github/table_github_workflow.go @@ -21,10 +21,12 @@ func tableGitHubWorkflow() *plugin.Table { }, Columns: commonColumns([]*plugin.Column{ // Top columns - {Name: "repository_full_name", Type: proto.ColumnType_STRING, + { + Name: "repository_full_name", Type: proto.ColumnType_STRING, Transform: transform.FromField("Description.RepositoryFullName"), Description: "Full name of the repository that contains the workflow."}, - {Name: "name", Type: proto.ColumnType_STRING, + { + Name: "name", Type: proto.ColumnType_STRING, Transform: transform.FromField("Description.Name"), Description: "The name of the workflow."}, {Name: "id", Type: proto.ColumnType_INT,