Add support for Bitbucket API tokens instead of access tokens#6337
Add support for Bitbucket API tokens instead of access tokens#6337pditommaso merged 4 commits intomasterfrom
Conversation
✅ Deploy Preview for nextflow-docs-staging ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
pditommaso
left a comment
There was a problem hiding this comment.
It would be preferable to keep support for user/password as a fallback even it deprecated.
https://www.nextflow.io/docs/latest/git.html#bitbucket-server
Consider also updating the corresponding docs
App passwords are still supported.
Docs to be updated in a separate PR. |
|
Ok, now I see it. Would not be better to give priority to the token over the pwd? |
Makes sense to me. I can change that. |
|
Can it be added one line mention in the docs about the new feature ? |
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
|
Ok, I did. Please have a look when you have a chance |
Looks good to me. Thanks, Paolo. |

Description
In #6209, it turns out I mixed up Bitbucket access tokens with Bitbucket API tokens. API tokens are the chosen replacement for app passwords, which cannot longer be created starting from 2025-09-09 and will stop working as a whole starting from 2026-06-09 (source).
This PR adds actual support for API tokens instead of access tokens. Using access tokens, operations such as contacting the REST API were working correctly, but others such as cloning a repository weren't.
Guidelines for testing
scm_token.config) with the following contents for API token authentication:providers { bitbucket { user = '<email>' token = '<API token>' } }scm_pass.config) with the following contents for app password authentication:providers { bitbucket { user = '<username>' password = '<app password>' } }