This page covers adding the credential and reading its access. The integration pages cover what each connection powers, its permissions, webhooks and how to disconnect.
Before you start
- A role with
credentials.write(the built-inownerandadminroles have it). See Credentials. - For GitHub: permission to install a GitHub App on the account or organisation. On a GitHub organisation you do not own, an owner has to approve the request.
- For GitLab: an access token with the
read_apiandread_repositoryscopes.
Add a Git credential
Go to Integrations & alerts → Credentials, click Add credential, and under Git, registries and keys choose the host.- GitHub
- GitLab
- Bitbucket Cloud
- Click Install the GitHub App. GitHub opens; choose the account and the repositories the app may access, and install it.
- GitHub brings you back to Ankra. If the page shows Finish GitHub connection, click it. The credentials list opens with the new GitHub credential.
Check repository access
Open the credential and click Repositories & resources.- For GitHub and Bitbucket Cloud, Repository access lists the repositories the connection can reach against the ones your applications need. The counts read Repositories available, Required by applications and Access missing, and each repository’s Access is Available, Access missing, Access not yet verified or Owned by another account. Click Sync repositories to read the list from the host again. For GitHub, Manage GitHub access ↗ opens the app installation on GitHub, where you add or remove repositories.
- For GitLab, repository access is managed in GitLab; the tab lists the Ankra resources that use the credential.
- A GitHub credential also lists its Repository webhooks, with the Delivery status of each.
ankra credentials list shows.
Rename, show or delete
Git credentials share the steps on Credentials: rename under Settings & access → Display name, and delete under Settings & access → Delete this credential. A role withcredentials.reveal can open a GitLab credential’s Stored values. Git credentials have no Check now and no Replace the secret.
Deleting a GitHub credential marks the connection for deletion; the GitHub App stays installed on GitHub until you remove it there.
Related
Git providers
What each Git host connection can do in Ankra.
GitOps
How Ankra keeps Git as the source of truth.