We have IP allowlist enabled on our Bitbucket Cloud workspace for security purposes. However, we're facing an issue where our Bitbucket Pipeline cannot call the Bitbucket API for the same workspace
Issue Details:
- We have a Pipeline step that fetches PR diff and posts comments using Bitbucket REST API
- The API calls fail with HTTP 403: "To access this repository, an admin must whitelist your IP"
What we tried:
- Added
atlassian-ip-ranges: true and size: 4x to the pipeline step - did not work - Checked the outbound IP using
curl -s ifconfig.me - confirmed it's not within Atlassian IP ranges
Questions:
- Is there a way to bypass IP allowlist for API calls made from Pipelines within the same workspace?
- Why is
atlassian-ip-ranges: true not assigning Atlassian IP ranges to our Pipeline? - Can Repository Access Tokens be exempted from IP allowlist restrictions?
- Are there any other solutions for this use case without setting up a self-hosted runner or proxy server?
Thank you for your assistance.