opendevstack / ods-provisioning-app

Provisioning app, which triggers project and component provisions (including Jira / Confluence / BitBucket and OCP resource creation)
Apache License 2.0
15 stars 20 forks source link

3.0.x project cd_user requires admin privileges on project level for bitbucket #674

Open segator opened 3 years ago

segator commented 3 years ago

Describe the bug Now that cd_user is not admin anymore seems that the new project specific cd_user requires full admin privileges on project level because 401 updating build status for commits on Bitbucket. Here the api https://developer.atlassian.com/server/bitbucket/how-tos/updating-build-status-for-commits/ Tested with @gerardcl that works after seeting by hand admin privileges on the specific cd_user

@stitakis @michaelsauter toughts?

michaelsauter commented 3 years ago

I think this is very unlikely. Can you retest in a clean environment?

To set the build status, WRITE permissions on the repository should be enough, and the personal access token created by ODS should have that. I would be VERY surprised if project level permissions, especially not admin, play any role here.