Bug report: GitHub API returns incorrect IP address ranges for GitHub Pages

The /meta endpoint returns IP address ranges. The pages element is below.

"pages": [
    "192.30.252.153/32",
    "192.30.252.154/32",
    "185.199.108.153/32",
    "185.199.109.153/32",
    "185.199.110.153/32",
    "185.199.111.153/32"
  ]

This is incorrect: the ranges 192.30.252.153/32 and 192.30.252.154/32 are not hosting GitHub Pages but instead are for github.com. Additionally, they are not listed in the documentation for GitHub PAges IP address ranges (Managing a custom domain for your GitHub Pages site - GitHub Docs).

Hi there;
I can not understand exactly what you mean.

If you have a GitHub repo it will be helpful if you share the link.
Anyway if you have a website hosted at GitHub pages and want to set a custom domain on that.

To set the desired domain in GitHub, you can use the IPs mentioned by GitHub:

  • 185.199.108.153
  • 185.199.109.153
  • 185.199.110.153
  • 185.199.111.153

For example a DNS setup at Cloudflare is like this:

Then I tried to better understand what you mean:
https://api.github.com/meta

There are many different sections on this API response. The reason some of them are weird may be that they are related to GitHub enterprise. (I guess, or internally)
You should refer to Section “pages”.
There you can see the IPs that correspond to GitHub Pages.

Hi Max,

Thanks for your reply!

Sorry if I was somehow unclear. This is unrelated to other sections of the meta/ API response or to GitHub Enterprise.

I get the same response as you do in your screenshot. Two of the elements in the list are wrong. Specifically, the ranges 192.30.252.153/32 and 192.30.252.154/32 should not be returned as they do not correspond to GitHub Pages.

The documentation for GitHub Pages does not mention these ranges (correctly) (Managing a custom domain for your GitHub Pages site - GitHub Docs step 5).

The API is returning incorrect data.