Skip to content
Seaeye Docs

GitHub connection

froog uses a GitHub App, and you pick the repositories it sees. In those, Seaeye starts a runner for each job with runs-on: seaeye (runners), and froog sandboxes clone private repositories without a pasted token: each gets a one-hour token for only those repositories.

$ froog github connect                      # install the app, pick repositories
$ froog github                              # linked accounts, what the token reaches
$ froog github repos                        # repositories the app sees
$ froog github token-repos acme/api acme/web  # limit the sandbox token (none: all)
$ froog environment add-repo https://github.com/acme/api
$ froog github disconnect 4242              # unlink an installation

Open the connect link in a browser signed in to the dashboard with the same account. froog checks you manage the installation (your account, or an org you own). Uninstalling the app on GitHub unlinks it.

In each sandbox with your environment, git and gh work with no setup. The git credential helper refreshes the token automatically; the gh login holds the token from the last start. The token has contents, pull requests, issues and workflows (read/write) and metadata (read). It never has Administration. Tokens are stored encrypted. Sandboxes created with --no-environment and CI jobs get no GitHub token.

API: GET /github, POST /github/connect, GET /github/repos, PUT /github/token-repos, DELETE /github/installations/{id}. Reading needs account.read, changes account.admin. No installation: 404 github_not_connected.