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
It looks like you're new here. Sign in or register to get started.