Tried searching for this but couldn't find any resources.
Is there a way to access the Rest API from a Pipelines script without the need for authentication to the API?
Because the way I see it, the build runners run within BitBucket and you've configured the scripts yourself for which you would've needed appropriate permissions anyway. So there's no need for further authentication (or is there?).
My specific use-case: I need to comment on a Pull Request being created with code-coverage results, for which I need to access the Rest API from the Pipelines script.