Drone 2.28.1 with Bitbucket Cloud: write-only users get 404 (permission sync 403)

In Drone 2.28.1 with Bitbucket Cloud, users granted Write (but not Admin) access to a repository could not see it in Drone: the UI and GET /api/repos/{owner}/{repo} returned 404, and GET /api/user/repos returned 403. Drone logs showed: api: cannot sync repository permissions, Access denied. You must have write or admin access. HTTP/2.0 403 Forbidden. Drone's permission sync was calling a Bitbucket API path that requires admin-level access, so the sync failed and the repo was treated as inaccessible. Granting the user Admin access in Bitbucket worked, but that was overly permissive.

Drone 2.28.1's Bitbucket permission sync hit an API endpoint that returns 403 unless the user has repo admin access, so write-only users got 404s in Drone. Fixed in Drone 2.28.2: update Drone to 2.28.2 or later. Multiple reporters confirmed the issue was resolved immediately after upgrading, and the issue was closed as fixed.

Source: https://github.com/harness/harness/issues/3683

Source: https://github.com/harness/harness/issues/3683