--- title: "ADR 0047: bootstrap normalises --github-api-url and always reads releases from public GitHub" --- * Status: accepted * Code: [`pkg/cmd/tknpac/bootstrap/bootstrap.go`](https://github.com/tektoncd/pipelines-as-code/blob/main/pkg/cmd/tknpac/bootstrap/bootstrap.go), [`pkg/cmd/tknpac/bootstrap/install.go`](https://github.com/tektoncd/pipelines-as-code/blob/main/pkg/cmd/tknpac/bootstrap/install.go) ## Context `bootstrap github-app` accepts `--github-api-url`, which can name public GitHub or a GitHub Enterprise instance, in several spellings. Separately, `bootstrap` installs the latest Pipelines-as-Code release. ## Decision * An empty `--github-api-url` triggers an interactive "GitHub Enterprise?" question; yes sets `providerType` to `github-enterprise-app`. * A value equal to `defaultPublicGithub` or `keys.PublicGithubAPIURL` is treated as public GitHub and replaced by `keys.PublicGithubAPIURL`. * Any other value is Enterprise: a trailing `/api/v3` is trimmed, `https://` is prepended when missing, and `providerType` becomes `github-enterprise-app`. * `getLatestRelease` builds its client with `github.NewClient()` and queries `pacGHRepoOwner/pacGHRepoName`, independent of `--github-api-url`. The release manifest URL is built on `rawGHURL`. * After a fresh install on a non-OpenShift cluster with no dashboard URL, `getDashboardURL` runs and then `updatePACConfigMap` writes `tekton-dashboard-url`. That function only sets that key today; the code does not say whether more keys are planned. ## Consequences * Users can pass a bare host, a full URL or the `/api/v3` form and get the same endpoint. * An `http://` Enterprise URL is not preserved: any value without the `https://` prefix gets it prepended. * Release discovery works for Enterprise users only if public GitHub is reachable from the machine running the command.