# Problem using Git (Bitbucket) after Atlassian switched to API Tokens

**URL:** https://www.finalbuilder.com/forums/t/problem-using-git-bitbucket-after-atlassian-switched-to-api-tokens/7802
**Category:** Bugs
**Created:** [June 29, 2026, 7:25am UTC](https://www.finalbuilder.com/forums/t/problem-using-git-bitbucket-after-atlassian-switched-to-api-tokens/7802 "2026-06-29T07:25:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![paul.james](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/838e76/32.png) [@paul.james](https://www.finalbuilder.com/forums/u/paul.james)
#### Post date: [June 29, 2026, 7:25am UTC](https://www.finalbuilder.com/forums/t/problem-using-git-bitbucket-after-atlassian-switched-to-api-tokens/7802/1 "2026-06-29T07:25:03Z")

</div>

Atlassian have switched off the ability to use app passwords to access Bitbucket cloud repositories and replaced them with api tokens.

We’d created api token’s previously and believed we had tested them with our build process however it appears FinalBuilder was still using cached app passwords as when we tried a build today after they had switched off app passwords we were unable to perform the git pull within FinalBuilder.

Is this a case of user error (in which case is there any guidance as to how we need to setup to use api tokens) or a bug?

Cheers

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [June 29, 2026, 12:06pm UTC](https://www.finalbuilder.com/forums/t/problem-using-git-bitbucket-after-atlassian-switched-to-api-tokens/7802/2 "2026-06-29T12:06:37Z")

</div>

Hi Paul

I managed to get it working but it took some time before I figured it out (after spending an hour just getting into my bitbucket account!)

First up, enable the built in credential helper on the action

In the repository url, replace your username with x-token-auth

eg

`https://finalbuilder@bitbucket.org/finalbuilder/testytest.git`  
becomes  
`https://x-token-auth@bitbucket.org/finalbuilder/testytest.git`

In the credentials tab, enter your user name and in the password field your access token.

Your access token needs the following scopes

| Operation | Required scopes | |
| --- | --- | --- |
| Clone | `read:repository:bitbucket` | |
| Push | `read:repository:bitbucket` + `write:repository:bitbucket` | |
| Pull requests | `read:pullrequest:bitbucket` (and `write:pullrequest:bitbucket` if creating/updating PRs) | |

---

<div class="post-metadata">

### Author: ![dcraggs](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/87869e/32.png) [@dcraggs](https://www.finalbuilder.com/forums/u/dcraggs)
#### Post date: [August 19, 2026, 9:59am UTC](https://www.finalbuilder.com/forums/t/problem-using-git-bitbucket-after-atlassian-switched-to-api-tokens/7802/3 "2026-08-19T09:59:45Z")

</div>

When I did that using a GIT Clone Repository Actions I get an Atlassian log in prompt.

 ![image](https://www.finalbuilder.com/forums/uploads/default/original/2X/9/97801789ffacd5e95db874c3c932f4cb0a09aac1.png)

---

<div class="post-metadata">

### Author: ![dcraggs](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/87869e/32.png) [@dcraggs](https://www.finalbuilder.com/forums/u/dcraggs)
#### Post date: [August 19, 2026, 10:34am UTC](https://www.finalbuilder.com/forums/t/problem-using-git-bitbucket-after-atlassian-switched-to-api-tokens/7802/4 "2026-08-19T10:34:50Z")

</div>

Ah - think I needed to update git on my system
