Fix runner token length
What does this MR do and why?
This MR fixes a minor bug introduced in !168163 (merged). It also introduces specs to make sure we check the expected length of a short sha (I'm surprised this wasn't being tested yet, tbh).
Part of #442395
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Pedro Pombeiro