You can retrieve a list of GitHub's IP addresses from the meta API endpoint. For more information, see "Meta."
Note: The list of GitHub IP addresses returned by the Meta API is not intended to be an exhaustive list. For example, IP addresses for some GitHub services might not be listed, such as LFS or GitHub Packages.
These IP addresses are used by GitHub to serve our content, deliver webhooks, and perform hosted GitHub Actions builds.
These ranges are in CIDR notation. You can use an online conversion tool to convert from CIDR notation to IP address ranges, for example: CIDR to IPv4 conversion site.
We make changes to our IP addresses from time to time. We do not recommend allowing by IP address, however if you use these IP ranges we strongly encourage regular monitoring of our API.
For applications to function, you must allow TCP ports 22, 80, and 443 via our IP ranges for