github

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 New

func New(opts Options) *Connector

New returns a GitHub connector.

func (*Connector) Discover

Discover implements connectors.Connector.

func (*Connector) Name

func (c *Connector) Name() string

Name 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL