Skip to content

Support Bitbucket Cloud via BITBUCKET_TOKEN and add authentication docs page#52

Merged
ctate merged 1 commit into
mainfrom
ctate/fix-bitbucket
Apr 16, 2026
Merged

Support Bitbucket Cloud via BITBUCKET_TOKEN and add authentication docs page#52
ctate merged 1 commit into
mainfrom
ctate/fix-bitbucket

Conversation

@ctate
Copy link
Copy Markdown
Collaborator

@ctate ctate commented Apr 16, 2026

Summary

  • Resolve Bitbucket repos through api.bitbucket.org/2.0 so the default branch is detected (via mainbranch.name) instead of blindly guessing main. 404/401/403 surface a hint to set BITBUCKET_TOKEN for private repos, matching the GitHub/GitLab pattern.
  • Add BITBUCKET_TOKEN support: a bitbucket_token() helper, Bearer auth on API requests, and authenticated_clone_url rewriting https://bitbucket.org to https://x-token-auth:<token>@bitbucket.org.
  • Add a Bitbucket row to the supported registries table in the CLI README.
  • Add a dedicated /auth docs page documenting all three env vars (GITHUB_TOKEN, GITLAB_TOKEN, BITBUCKET_TOKEN), register it in PAGE_TITLES, link it from both sidebar navs, and cross-link from the Registries page.

…cs page

Resolves Bitbucket repositories through api.bitbucket.org (so the default
branch is detected correctly instead of falling back to main) and adds a
BITBUCKET_TOKEN env var for private repos. Clone URLs are rewritten to use
the x-token-auth scheme when a token is set.

Also adds a dedicated Authentication page to the docs site documenting all
three tokens (GITHUB_TOKEN, GITLAB_TOKEN, BITBUCKET_TOKEN) with links from
the Registries page.
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
opensrc Ready Ready Preview, Comment Apr 16, 2026 8:06pm

@ctate ctate merged commit a7ab493 into main Apr 16, 2026
8 checks passed
@ctate ctate mentioned this pull request Apr 18, 2026
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.

1 participant