def METHOD_NAME(self):
    session = requests.Session()
    token = os.environ.get("GITHUB_TOKEN", None)
    if token:
        logger.debug("Using GitHub token as authorization")
        session.headers.update({"Authorization": "token " + token})
    return session