fadwamrzk commented on issue #8868: URL: https://github.com/apache/incubator-devlake/issues/8868#issuecomment-4421280818
After checking the official Bitbucket REST API documentation, i think it is actually a double deprecation issue affecting two separate endpoints in the DevLake Bitbucket plugin: **GET https://api.bitbucket.org/2.0/repositories** is depreacted also based on the official documentation, the **List public repositories** is deprecated => LINK: [https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-get](url) and it should be updated by worspace-scoped endpoint : https://api.bitbucket.org/2.0/repositories/{workspace} [documentation-ink](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-get) **GET https://api.bitbucket.org//2.0/workspaces** is deprecated as mentioned by @pegedece A suggested fix is that: **https://api.bitbucket.org/2.0/repositories** should be updated by worspace-scoped endpoint : https://api.bitbucket.org/2.0/repositories/{workspace} **[LINK](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-get)** and **https://api.bitbucket.org/2.0/workspaces** should be updated by https://api.bitbucket.org/2.0/user/workspaces **[LINK](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-workspaces/#api-user-workspaces-get)**. Both replacements are workspace-scoped, meaning the workspace in use must be known upfront. This especially related to the replacement of App Password by API Tokens. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
