Add repo token conditionally.