githubapps

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 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 githubapps is each GitHub App's required permission set, as data (v4 D12): the agents App mints the runs' and the publisher's tokens, the factory App handles issues, labels, statuses and merges, and the merger may be a third App or fold into the factory App. Tokens are minted downscoped from these sets; an installation must grant them. `maku install` (rollout step 7) creates the Apps from them, and the factory checks each installation against them at start.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(p Permissions) string

Render is p as a Markdown table, sorted by permission.

Types

type DocTable

type DocTable struct {
	Name        string
	Permissions Permissions
}

DocTable is one permission table docs/github-apps.md carries between its markers.

func DocTables

func DocTables() []DocTable

DocTables are the documented sets: the agents App, the factory App with the merger folded in and every merger option on, the factory App alone, and a separate merger App with every option on.

type MergerOptions

type MergerOptions struct {
	Folded bool // the merger signs with the factory App
	Reruns bool // merge.checkReruns on any repository: actions write
	Labels bool // a live or monitored class: issues write
	Status bool // merge.gateStatus on any repository: statuses write
}

MergerOptions says what the merger asks for, as forge.MergerPermissions does, and whether it is folded into the factory App (github.mergerAppIDFile equal to github.appIDFile).

type Permissions

type Permissions = minter.Permissions

Permissions is a permission name to its access, read or write.

func Agents

func Agents() Permissions

Agents is the agents App's required set: every permission the role table may mint, over every role and every enforced combination, the publisher included. It never holds statuses, workflows or administration (the role table's invariants).

func Factory

func Factory(o MergerOptions) Permissions

Factory is the factory App's required set: its own token's scope, and the merger's when the merger is folded into it.

func Merger

func Merger(o MergerOptions) Permissions

Merger is the merger App's required set (R16), whichever App holds it.

Jump to

Keyboard shortcuts

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