Skip to main content

Bitbucket Cloud Access Token Generation Steps

Spot Security requires a valid Bitbucket Cloud Personal Access token to scan the repositories. The steps to generate the token can be found at Access Tokens | Bitbucket Cloud | Atlassian Support.

  • Access tokens can be generated at the user level or the project/repository level.

As part of the steps, you will be asked to select Scopes. The following scopes are required:

ScopesSpot Security Use case
Repositories → ReadIaC Scan
Pull requests → ReadPR integration
Pull requests → WritePR integration

Validate the Token

The easiest way to validate is to use the hints provided on the GitLab portal when generating the token. If your repo is accessible only from your AWS/Azure network, you can try running the command below from the network where Spot Security will access it.

Run the following command after replacing the values with <> (do not include the <>) to test your token:

git clone https://x-token-auth:<your-accesstoken-value>@bitbucket.org/<your-project-name/your-repo-name>.git