Support Bitbucket Cloud via BITBUCKET_TOKEN and add authentication docs page#52
Merged
Conversation
…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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
api.bitbucket.org/2.0so the default branch is detected (viamainbranch.name) instead of blindly guessingmain. 404/401/403 surface a hint to setBITBUCKET_TOKENfor private repos, matching the GitHub/GitLab pattern.BITBUCKET_TOKENsupport: abitbucket_token()helper, Bearer auth on API requests, andauthenticated_clone_urlrewritinghttps://bitbucket.orgtohttps://x-token-auth:<token>@bitbucket.org./authdocs page documenting all three env vars (GITHUB_TOKEN,GITLAB_TOKEN,BITBUCKET_TOKEN), register it inPAGE_TITLES, link it from both sidebar navs, and cross-link from the Registries page.