Skip to content

feat(platform/bitbucket): support mixed auth (workspace access token + personal api token)#40931

Draft
setchy wants to merge 10 commits intorenovatebot:mainfrom
setchy:feat/bitbucket-workspace-tokens
Draft

feat(platform/bitbucket): support mixed auth (workspace access token + personal api token)#40931
setchy wants to merge 10 commits intorenovatebot:mainfrom
setchy:feat/bitbucket-workspace-tokens

Conversation

@setchy
Copy link
Collaborator

@setchy setchy commented Feb 4, 2026

Changes

Update http client auth fn to support mixed authentication for Bitbucket Cloud.

Workspace Access Tokens have significantly higher API rate limits, however there are no permissions currently for Issues read/write, which is required for those using Dependency Dashboard within Bitbucket Cloud.

This update falls back to username + password auth for /issue operations, while all others will use token when present.

Context

Workspace Access Tokens
Screenshot 2026-02-04 at 12 32 38 PM

Please select one of the following:

  • This closes an existing Issue, Closes: #
  • This doesn't close an Issue, but I accept the risk that this PR may be closed if maintainers disagree with its opening or implementation

AI assistance disclosure

Did you use AI tools to create any part of this pull request?

Please select one option and, if yes, briefly describe how AI was used (e.g., code, tests, docs) and which tool(s) you used.

  • No — I did not use AI for this contribution.
  • Yes — minimal assistance (e.g., IDE autocomplete, small code completions, grammar fixes).
  • Yes — substantive assistance (AI-generated non‑trivial portions of code, tests, or documentation).
  • Yes — other (please describe):

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests, but ran on a real repository, or
  • Both unit tests + ran on a real repository

The public repository:

Signed-off-by: Adam Setch <adam.setch@outlook.com>
Signed-off-by: Adam Setch <adam.setch@outlook.com>
Signed-off-by: Adam Setch <adam.setch@outlook.com>
@github-actions github-actions bot requested a review from viceice February 4, 2026 18:32
@setchy setchy marked this pull request as draft February 4, 2026 18:43
@setchy
Copy link
Collaborator Author

setchy commented Feb 4, 2026

@viceice - would appreciate some general input on the direction here

@setchy setchy marked this pull request as ready for review February 4, 2026 21:13
Signed-off-by: Adam Setch <adam.setch@outlook.com>
Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we like this quirk.

Are there any plans that the token will support the required permissions any time in future?

@setchy
Copy link
Collaborator Author

setchy commented Feb 5, 2026

I don't think we like this quirk.

I agree, very quirky...

The elevated rate limits for workspace tokens make this all worth exploring.

Are there any plans that the token will support the required permissions any time in future?

I've reached out to their Product Owner to check, but I'm doubtful since BB issues are a legacy feature in many ways...

Signed-off-by: Adam Setch <adam.setch@outlook.com>
@setchy setchy marked this pull request as draft February 5, 2026 18:51
@setchy
Copy link
Collaborator Author

setchy commented Feb 5, 2026

Open to other ideas on how to best change this. Moving back to draft while we discussion best paths forward

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants