-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathplugin.go
More file actions
98 lines (95 loc) · 5.61 KB
/
plugin.go
File metadata and controls
98 lines (95 loc) · 5.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
package github
import (
"context"
"github.com/turbot/steampipe-plugin-sdk/v5/plugin"
"github.com/turbot/steampipe-plugin-sdk/v5/plugin/transform"
)
// Plugin returns this plugin
func Plugin(ctx context.Context) *plugin.Plugin {
p := &plugin.Plugin{
Name: "steampipe-plugin-github",
ConnectionConfigSchema: &plugin.ConnectionConfigSchema{
NewInstance: ConfigInstance,
},
ConnectionKeyColumns: []plugin.ConnectionKeyColumn{
{
Name: "login_id",
Hydrate: getLoginId,
},
},
DefaultTransform: transform.FromGo(),
DefaultRetryConfig: retryConfig(),
TableMap: map[string]*plugin.Table{
"github_actions_artifact": tableGitHubActionsArtifact(),
"github_actions_environment_variable": tableGitHubActionsEnvironmentVariable(),
"github_actions_organization_variable": tableGitHubActionsOrganizationVariable(),
"github_actions_repository_runner": tableGitHubActionsRepositoryRunner(),
"github_actions_repository_secret": tableGitHubActionsRepositorySecret(),
"github_actions_repository_variable": tableGitHubActionsRepositoryVariable(),
"github_actions_repository_workflow_run": tableGitHubActionsRepositoryWorkflowRun(),
"github_audit_log": tableGitHubAuditLog(),
"github_blob": tableGitHubBlob(),
"github_branch": tableGitHubBranch(),
"github_branch_protection": tableGitHubBranchProtection(),
"github_code_owner": tableGitHubCodeOwner(),
"github_commit": tableGitHubCommit(),
"github_community_profile": tableGitHubCommunityProfile(),
"github_gist": tableGitHubGist(),
"github_gitignore": tableGitHubGitignore(),
"github_issue": tableGitHubIssue(),
"github_issue_comment": tableGitHubIssueComment(),
"github_license": tableGitHubLicense(),
"github_my_gist": tableGitHubMyGist(),
"github_my_issue": tableGitHubMyIssue(),
"github_my_organization": tableGitHubMyOrganization(),
"github_my_repository": tableGitHubMyRepository(),
"github_my_star": tableGitHubMyStar(),
"github_my_team": tableGitHubMyTeam(),
"github_organization": tableGitHubOrganization(),
"github_organization_dependabot_alert": tableGitHubOrganizationDependabotAlert(),
"github_organization_external_identity": tableGitHubOrganizationExternalIdentity(),
"github_organization_member": tableGitHubOrganizationMember(),
"github_organization_collaborator": tableGitHubOrganizationCollaborator(),
"github_package": tableGitHubPackage(),
"github_package_version": tableGitHubPackageVersion(),
"github_pull_request": tableGitHubPullRequest(),
"github_pull_request_comment": tableGitHubPullRequestComment(),
"github_pull_request_review": tableGitHubPullRequestReview(),
"github_rate_limit": tableGitHubRateLimit(),
"github_rate_limit_graphql": tableGitHubRateLimitGraphQL(),
"github_release": tableGitHubRelease(),
"github_repository": tableGitHubRepository(),
"github_repository_collaborator": tableGitHubRepositoryCollaborator(),
"github_repository_content": tableGitHubRepositoryContent(),
"github_repository_dependabot_alert": tableGitHubRepositoryDependabotAlert(),
"github_repository_deployment": tableGitHubRepositoryDeployment(),
"github_repository_discussion": tableGitHubRepositoryDiscussion(),
"github_repository_environment": tableGitHubRepositoryEnvironment(),
"github_repository_ruleset": tableGitHubRepositoryRuleset(),
"github_repository_sbom": tableGitHubRepositorySbom(),
"github_repository_vulnerability_alert": tableGitHubRepositoryVulnerabilityAlert(),
"github_search_code": tableGitHubSearchCode(),
"github_search_commit": tableGitHubSearchCommit(),
"github_search_issue": tableGitHubSearchIssue(),
"github_search_label": tableGitHubSearchLabel(),
"github_search_pull_request": tableGitHubSearchPullRequest(),
"github_search_repository": tableGitHubSearchRepository(),
"github_search_topic": tableGitHubSearchTopic(),
"github_search_user": tableGitHubSearchUser(),
"github_stargazer": tableGitHubStargazer(),
"github_tag": tableGitHubTag(),
"github_team": tableGitHubTeam(),
"github_team_member": tableGitHubTeamMember(),
"github_team_repository": tableGitHubTeamRepository(),
"github_traffic_clone_daily": tableGitHubTrafficCloneDaily(),
"github_traffic_clone_weekly": tableGitHubTrafficCloneWeekly(),
"github_traffic_view_daily": tableGitHubTrafficViewDaily(),
"github_traffic_view_weekly": tableGitHubTrafficViewWeekly(),
"github_tree": tableGitHubTree(),
"github_user": tableGitHubUser(),
"github_user_contribution_stats": tableGitHubUserContributionStats(),
"github_workflow": tableGitHubWorkflow(),
},
}
return p
}