Bitbucket
bitbucket Clone from Bitbucket Cloud or Bitbucket Data Center with an access token, an OAuth consumer or an SSH access key, and pick repositories from a list.
Setup
Choose how Pando signs in
Create a token
- Create one of these tokens:
Token Where Permission Cloud access token Workspace, project or repository settings → Security → Access tokens → Create access token Repositories: Read Cloud API token Account settings → Security → Create API token with scopes → Bitbucket read:repository:bitbucket Data Center HTTP access token Manage account, Project settings or Repository settings → HTTP access tokens → Create token Repository read - For a Cloud API token or a Data Center personal token, enter your username below.
- Create one of these tokens:
Add an OAuth consumer
- In the workspace, open Settings → Workspace settings → OAuth consumers → Add consumer.
- Enter a Name. Set Callback URL to your Pando address plus
/api/v1/sources/callback. - Under Permissions, check Repositories Read and choose Save.
- Choose the consumer's name and copy its Key and Secret.
Add an access key
- Run
ssh-keygen -t ed25519 -f pando-access -N "". - On Bitbucket Cloud, open Repository settings → Access keys → Add key. Enter a Label, paste
pando-access.pubinto Key and save it. - On Data Center, open the project's or repository's Settings → Access keys → Add key. Paste
pando-access.pub, choose Read and choose Add key. - Paste
pando-accessbelow. - Run
ssh-keyscan bitbucket.org, orssh-keyscan -p 7999 HOSTfor Data Center, and paste its output below.
- Run
Choose a workspace or project
Settings (15)
methodHow Pando signs inRequiredhostHostThe host repositories are on. Change it for a self-managed server.
scopeWorkspace or projectBitbucket Cloud: the workspace ID, such as acme. Data Center: the project key, such as PAY. Empty is every repository the credential can read.
token_typeToken typeBitbucket Cloud only. Data Center takes an HTTP access token whichever is chosen.
usernameUsernameYour username, for a Cloud API token or a Data Center personal token. Empty is x-token-auth.
emailAtlassian account emailCloud API token only. Empty is the username.
tokenTokenCredentialRead access to repositories is enough.
client_idOAuth consumer keyThe Key from Workspace settings → OAuth consumers.
client_secretOAuth consumer secretCredentialThe Secret shown beside the Key.
ssh_private_keySSH private keyCredentialThe private half of a deploy key or access key added to the repository. Pando reads the repository with it and never writes.
ssh_passphraseKey passphraseCredentialOnly if the key has one.
known_hostsKnown hostsThe host's public key, as ssh-keyscan bitbucket.org prints it. For Data Center, ssh-keyscan -p 7999 HOST, whose lines begin [HOST]:7999.
ssh_portSSH portAdvancedBitbucket Data Center's SSH port, for turning an HTTPS address into an SSH one. Not used on Bitbucket Cloud.
api_urlAPI addressAdvancedWhere the host's API is, if not where Pando would look for it.
ca_bundleCertificate authorityAdvancedPEM certificates to trust for a self-managed host on a private certificate authority, beside the system's.