feat(bitbucket): add API token authentication support and deprecate A… #8604
+952
−59
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bitbucket API Token Authentication Support
Summary
This PR adds support for Bitbucket API tokens as an authentication method for the Bitbucket plugin, in response to Atlassian's deprecation timeline for App passwords (creation discontinued September 9, 2025; all deactivated June 9, 2026).
Key Changes:
UsesApiToken
boolean field to track authentication type (both use HTTP Basic Auth withusername:credential
format)usesApiToken = false
by default)Authentication Details:
Testing:
Does this close any open issues?
Closes #8520
Screenshots
Onboarding Connection Form (API Token - Default)

New Connection Form (From Config-UI)

Other Information
Migration Path
Required API Token Scopes
read:account
- Required to view users profilesread:issue:bitbucket
- View your issuesread:pipeline:bitbucket
- View your pipelinesread:project:bitbucket
- View your projectsread:pullrequest:bitbucket
- View your pull requestsread:repository:bitbucket
- View your repositoriesread:runner:bitbucket
- View your workspaces/repositories' runnersread:user:bitbucket
- View user info (required for connection test)read:workspace:bitbucket
- View your workspaces