Skip to content

Comments

Add Bitbucket API token support#201

Merged
amitsaha merged 1 commit intoamitsaha:masterfrom
rdowavic:feat/bitbucket-api-token
Feb 21, 2026
Merged

Add Bitbucket API token support#201
amitsaha merged 1 commit intoamitsaha:masterfrom
rdowavic:feat/bitbucket-api-token

Conversation

@rdowavic
Copy link

Summary

  • Adds support for Bitbucket API tokens via the BITBUCKET_TOKEN environment variable, as Bitbucket has deprecated app passwords (disabled after June 9, 2026)
  • Falls back to BITBUCKET_PASSWORD for backward compatibility
  • Updates README with new API token scopes (read:user:bitbucket, read:workspace:bitbucket, read:repository:bitbucket) and usage examples

Test plan

  • Existing tests pass (go test ./...)
  • New test TestNewBitbucketClientWithToken verifies token auth path
  • Manually tested with a real Bitbucket API token — successfully listed and cloned 28 repositories

Fixes #197

Bitbucket has deprecated app passwords (disabled after June 9, 2026).
This adds support for the new API tokens via the BITBUCKET_TOKEN env
var, falling back to BITBUCKET_PASSWORD for backward compatibility.

Fixes amitsaha#197
@rdowavic rdowavic force-pushed the feat/bitbucket-api-token branch from 477d314 to e8de7ac Compare February 20, 2026 11:31
@amitsaha amitsaha merged commit c613fea into amitsaha:master Feb 21, 2026
6 checks passed
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.

Bitbucket no longer supports app passwords, please add support for API Tokens

2 participants