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