Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Access a Single Private Repo in Bitbucket for Composer (Like GitHub/GitLab Personal Access To

takielias
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 6, 2025

Hi everyone,

On GitHub/GitLab we can generate a personal access token and use it directly in Composer to give access to a single private repository.

In Bitbucket, I see that we can use OAuth consumer key/secret, but that seems to work at the workspace level — meaning it gives access to all private repos in the workspace.

What I actually need:

  • A way to give Composer access to only one private PHP library repo.

  • I don’t want to expose or allow access to all repos in my workspace.

  • Basically, I want something like GitHub/GitLab tokens that I can drop into Composer so that running composer install will pull from just that one repo.

Is there any way to do this in Bitbucket?

Thanks in advance for any suggestions.

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events