Github actions IP ranges? #26442
-
Hello, I need to know subnets of github actions, because my staging server blocks access by default and need to whitelist specific IP/Subnet, it’s necessary to run e2e tests in Github Actions against my staging server. Please help. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
GitHub Hosted Windows or Ububtu runner use the same IP address arranges as Azure Data Center. You can following our documentation here to get the IP address: IP addresses of GitHub-hosted runners. By the way, Self-hosted runners is now in beta, you can also try with it if you want to control the runner by yourself and whitelist the runners more eaisly. |
Beta Was this translation helpful? Give feedback.
-
Hi, I’m discovering GitHub Action. It seems to be great. but… are we sure the ip ranges provided by Microsoft is always up to date ?
Thx for your help |
Beta Was this translation helpful? Give feedback.
-
I just checked the latest IP ranges, same filename as yours. The IP is there, as it belongs to subnet 40.70.0.0/18. |
Beta Was this translation helpful? Give feedback.
-
Thanks for taking the time about my issue. I had done a mistake in my iptables rules where the order of the lines is important. I was logging all rejected packets in the end of my main firewall script, and added allow rules for the azure ip only after. So theses azure rules were never reached. Just an iptables noobs problem :slight_smile: |
Beta Was this translation helpful? Give feedback.
-
This thread is a duplicate. The current thread is https://github.community/t5/GitHub-Actions/Whitelist-Github-Workflow/td-p/15916 |
Beta Was this translation helpful? Give feedback.
GitHub Hosted Windows or Ububtu runner use the same IP address arranges as Azure Data Center. You can following our documentation here to get the IP address: IP addresses of GitHub-hosted runners.
By the way, Self-hosted runners is now in beta, you can also try with it if you want to control the runner by yourself and whitelist the runners more eaisly.