We have this python script that parses our PR and build formated PDF reports.
The script uses the REST API and identification is done through an App password linked to my account. So far everything works.
We use bitbucket cloud and when a user makes a new pull request and add images to it's description every team member can see it on the web interface.
My issue is : My script gets permission denied error when trying to retrieve the files associated with these images.
URL looks like this : https://bitbucket.org/repo/5qonzBe/images/427842925-image.png
I managed to download it using my own login and password but obviously this is not acceptable for a script that will be shared around the company.
I did not find anything relevant to this in the permissions associated with an App password.
Any idea on how to get these images from a script without using my own credentials?