Documentation
¶
Overview ¶
Package github implements the GitHub connector: read-only discovery of repositories, workflows, secrets metadata, and the permissions of the authenticated principal (PRD sections 21 and 55).
It never reads or stores secret values; the GitHub API only exposes secret names and timestamps, which is exactly what the graph needs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector discovers GitHub infrastructure.
func (*Connector) Discover ¶
func (c *Connector) Discover(ctx context.Context) (*connectors.DiscoveryResult, error)
Discover implements connectors.Connector.
type Options ¶
type Options struct {
// Client is an authenticated go-github client (read-only token
// recommended).
Client *gh.Client
// Owner limits discovery to one user or organization. Empty means the
// authenticated user.
Owner string
// MaxRepos caps the number of repositories enumerated (0 = 100).
MaxRepos int
// IncludeForks includes forked repositories.
IncludeForks bool
}
Options configures the connector.