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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.