I have a workspace token ($BITBUCKET_WKP_ATOKEN_REPOSITORY) with all scope for repository (WRITE,READ,ADMIN,DELETE)
The project is private!
The wiki is activated!
I can clone the project but not the wiki
But I'm unable to clone the wiki :
Project:
git clone https://x-token-auth:$TOKEN@bitbucket.org/*****/*******git
Cloning into '*****'...
Receiving objects: 100% (346/346), 73.00 KiB | 247.00 KiB/s, done.
Resolving deltas: 100% (86/86), done.
But for wiki ins't possible to clone:
git clone https://x-token-auth:$ATOKEN@bitbucket.org/*****/*******git/wiki
Cloning into '*****'...
remote: Your credentials lack one or more required privilege scopes.
fatal: unable to access 'https://bitbucket.org/*****/*******.git/wiki/': The requested URL returned error: 403
Hi Joao,
Unfortunately, after my own testing and confirmation with others - it is not possible to clone the wiki using WAT as it lacks the scope required.
We have raised a feature request with our developer team to include this scope, however - please feel free to "Watch" this request for future updates and "Vote" for it to increase its visibility with regard to customer demand:
In the interim, you can make use of an App Password instead to perform this as it contains the Wiki scope.
Hope this helps.
Cheers!
- Ben (Bitbucket Cloud Support)
> https://jira.atlassian.com/browse/BCLOUD-22562
issue above was closed without fix.
The recommendation above is to use App Password instead, is also broken. That basically redirects to API tokens page.
Please note that, using API tokens (scoped with repo access) you can only clone the main repo but not the wiki.
here's example error on that:
emote: Your credentials lack one or more required privilege scopes.
fatal: unable to access 'https://bitbucket.org/ws/project_name.git/wiki/':
The requested URL returned error: 403
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Atiq
To clone a wiki using API token, you'll need to follow the steps below - I've tested this and it works:
Click the gear cog icon, select Atlassian Account settings > Security tab > Create and manage API Tokens
Click Create API token with scopes and select Bitbucket Cloud
Select read:repository:bitbucket and read:wiki:bitbucket
Perform the clone using the API token by executing either of the commands below (if using the first command - you can find your username by clicking the gear cog icon and selecting Personal Bitbucket Settings - it's visible under the Bitbucket Profile Settings heading):
Please try this and let me know how it goes.
Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the instructions.
Earlier, I wasn't able to find account level API token. I was using repository level API key section of the site. That's why it wasn't working.
With API key under account setting, finally I am able to git clone the wiki.
git clone https://x-bitbucket-api-token-auth:APIToken@bitbucket.org/atiq-cs/mukto-mona-tech/wiki tech-wiki
Cloning into 'tech-wiki'...
remote: Enumerating objects: 254, done.
remote: Counting objects: 100% (254/254), done.
remote: Compressing objects: 100% (112/112), done.
remote: Total 254 (delta 143), reused 239 (delta 139), pack-reused 0 (from 0)
Receiving objects: 100% (254/254), 37.05 KiB | 145.00 KiB/s, done.
Resolving deltas: 100% (143/143), done.
Thanks so much.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.