manifest

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 18 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 manifest creates a GitHub App through the manifest flow and writes its credentials to a PEM file and a .env file.

Index

Constants

View Source
const Timeout = 5 * time.Minute

Timeout bounds the whole manifest flow, from the plan to the code exchange.

Variables

This section is empty.

Functions

func DefaultAppName

func DefaultAppName() string

DefaultAppName returns "badil-dev-" plus 6 random lowercase hex chars. GitHub App names are global, so the suffix avoids collisions without publishing anything about the developer's machine.

func Run

func Run(ctx context.Context, stdin io.Reader, stdout io.Writer, opts Options) error

Run creates a GitHub App through the manifest flow: it prints the plan, asks for confirmation unless opts.AssumeYes, serves the manifest form, exchanges the callback code for the App's credentials and writes the PEM and .env files.

Documented at https://docs.github.com/en/apps/sharing-github-apps/registering-a-github-app-from-a-manifest.

Types

type Options

type Options struct {
	AppName       string
	GitopsRepoURL string
	EnvPath       string
	PEMPath       string
	Owner         string
	WebhookURL    string
	AssumeYes     bool
	// GitHubURL is GITHUB_URL as the canonical base github.ParseWebURL
	// returns and GitHubAPIURL is GITHUB_API_URL, validated
	// (config.LoadGitHubURLs).
	GitHubURL    string
	GitHubAPIURL string
}

Options configures Run.

Jump to

Keyboard shortcuts

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