Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket pipeline ip whitelisting issue

Tagnpin November 13, 2022

Hi,

I am using the bitbucket pipeline to run our unit test cases.

In my package.json file, I am using the project host on bitbucket with the IP whitelisting enabled security.

I also whitelisted the IP mentioned on the bitbucket portal

IPv4: 18.205.93.0/25, 18.234.32.128/25, and 13.52.5.0/25

IPv6: 2406:da00:ff00::0/96

 

Still getting the error while installing npm packages.

ERROR: npm ERR! remote: To access this repository, an admin must whitelist your IP.

 

PFA for your reference

Screenshot 2022-11-14 at 12.36.20 PM.png

 

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 14, 2022

G'day!

I would suggest reading the following documentation for IP addresses that need to be whitelisted - particularly the section "Valid IP addresses for Bitbucket Pipelines build environments" and whitelist these accordingly:
https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/

You can determine the exact IP address for a given build by adding the following to your pipelines YML - this should be a part of the list linked above:

curl http://checkip.amazonaws.com/

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

Tagnpin November 15, 2022

Thanks, Ben I have whitelisted entire Valid IP addresses for Bitbucket Pipelines build environments.

Now its working

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events