Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to access PR description images from script?

Antoine Letouzey
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 15, 2019

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?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events