github
This page is generated from the same Go declarations the loader enforces, so it
cannot drift from what ob validate accepts.
Fields on this page
Section titled “Fields on this page”apiUrl · repository · tokenEnv
Reference
Section titled “Reference”| Field | Type | Default | What it does |
|---|---|---|---|
apiUrl | string | https://api.github.com | GitHub REST API base URL for GitHub Enterprise Server (https://HOST/api/v3) or GitHub Enterprise Cloud with data residency (https://api.SUBDOMAIN.ghe.com). Image source labels and checkout remotes are matched against the same host. Because the project file names the host, ob sends a token there only when the operator’s environment confirms the same URL in ONEBOX_GITHUB_API_URL, and never sends it a github.com token: the token comes from tokenEnv, GH_ENTERPRISE_TOKEN, GITHUB_ENTERPRISE_TOKEN, or gh auth token —hostname for that host. Expects an http or https URL. |
repository * | string | — | GitHub repository, as owner/name, whose deployments record each deploy and rollback. Workload images whose org.opencontainers.image.source label names this repository are reported at their org.opencontainers.image.revision commit; when none does, the clean checkout’s commit is reported if the checkout is a clone of this repository. Each image repository is reported in its own GitHub environment, named like production (shop-web); a configuration-only repository is named after the application. Expects owner/name, such as labstack/shop. |
tokenEnv | string | — | Local environment-variable name containing a GitHub token with Deployments write access; it must contain GH or GITHUB and end in TOKEN, so a project file cannot name some other secret. When unset, GH_TOKEN, then GITHUB_TOKEN, then gh auth token is used. A missing token or a failed GitHub call is a warning, never a blocked operation. Expects an upper-case variable name containing GH or GITHUB and ending in TOKEN, such as SHOP_GH_TOKEN. |
* marks a field that is required within its own object.