Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

This endpoint does not support token-based authentication | Update Build status for commit

Rahul
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!
August 12, 2024

 

Hello guys,

I'm trying to update the build status for commit using a service account username and app password which has repository:read scope

 

I was able to create build status for a commit using it, but getting 403 error when trying to update build status  "This endpoint does not support token-based authentication"
has only repository:read as permission required. What am I missing?

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 14, 2024

Hi Rahul, and welcome to the community!

I cannot reproduce the issue you are reporting. I can update a commit's build status using an app password with Repositories - Read permissions and a call like the following:

curl https://api.bitbucket.org/2.0/repositories/workspace-id/repo/commit/fbf0386/statuses/build/MY-BUILD -X PUT \
-u username:app_password \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
-d '{
"key": "MY-BUILD",
"state": "SUCCESSFUL",
"description": "42 tests passed",
"url": "https://www.example.org/my-build-result"
}'

Can you run such a call successfully? Are there differences between the call I shared and the call you are using?

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events