only generate repo token or key if not exists