def METHOD_NAME(event, host):
    if not host:
        return
    external_id = get_github_external_id(event=event, host=host)
    integration = integration_service.get_integration(
        external_id=external_id,
        provider="github_enterprise",
    )
    if integration is None:
        logger.exception("Integration does not exist.")
        return
    return integration.metadata["installation"]