github

package
v0.0.0-...-e36ea6f Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventInstallation        = "integration_installation"
	EventInstallationRequest = "integration_installation_request"
)

Variables

This section is empty.

Functions

func FetchEvents

func FetchEvents(ctx context.Context, cfg config.Config, timestamp time.Time) ([]*github.AuditEntry, time.Time, error)

FetchEvents retrieves audit log entries for the two integration event types, stopping pagination once the stored cursor is encountered or pages run out. Returned events are ordered newest-first (as returned by the API).

func GenerateAccessToken

func GenerateAccessToken(ctx context.Context, appID, installationID, privateKeyPEM, org string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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