Allow the usso token only for the Submitqueue priority requests
In https://github.com/uber/arcanist/pull/309, we started adding the USSO token to the Submit Queue client to support priority requests. The token was generated using ussh.
After rollout, one service owner reported that arc stack was failing in their service environment because ussh isn’t available outside developer machines or Devpods (e.g., production hosts).
This PR updates the logic to include the USSO token only for Submit Queue requests made via the Priority Queue API (i.e., arc land --skip-submitqueue-checks) to prevent failures in non-dev environments.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.