from typing import List
import requests


def get_github_ips() -> List[str]:
    """Gets GitHub's Hooks IP Ranges

    Returns:
        List of IP Ranges
    """
    resp = requests.get(
        'https://api.github.com/meta',
        headers={
            'User-Agent': 'hreeder/security-group-synchronizer'
        }
    )
    data = resp.json()
    return data['hooks']