githubactions

package
v0.4.14 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package githubactions implements the GitHub Actions connector. It populates the builds and build_jobs tables from the Workflow Runs / Jobs APIs and the deploys table (source=github_actions) from the Deployments API.

The connector shares the github connector's token by default; configuration is applied during config.Load so this package treats cfg.Token as authoritative. Same API host as github, so no separate credential is needed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config = config.GitHubActionsConn

Config is an alias exported for symmetry with other connectors.

type Connector

type Connector struct {
	// contains filtered or unexported fields
}

Connector implements the github_actions connector.

func New

New constructs a Connector. The supplied token is treated as authoritative; inheritance from [connectors.github] is applied during config Load.

func (*Connector) BudgetSnapshot added in v0.4.4

func (c *Connector) BudgetSnapshot() map[string]ratelimit.BudgetState

BudgetSnapshot returns the current rate-limit budget for this connector.

func (*Connector) Extract

Extract pulls workflow runs (builds + build_jobs) and deployments (deploys, source=github_actions) for the given repo within window. Errors are recorded on the returned provenance rather than panicking; per-table row counts are tallied as rows are emitted.

func (*Connector) Name

func (c *Connector) Name() string

Name implements connector.Connector.

func (*Connector) Ping

func (c *Connector) Ping(ctx context.Context) error

Ping verifies the token by calling the authenticated-user endpoint. Same API host as the github connector, so a successful response here implies the configured token is usable for the Actions and Deployments APIs.

Jump to

Keyboard shortcuts

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