import requests


def github_session(token):
    """Create HTTP session with authentication header."""
    session = requests.Session()
    session.headers.update(
        {
            "Accept": "application/vnd.github.v3+json;charset=utf-8",
            "Authorization": f"token {token}",
        }
    )
    return session