Make the "short_token" value of a trigger token accessible in the API
Release notes
Trigger tokens can be used to trigger a pipeline, which authenticates by impersonating a user's project access and permissions. Trigger tokens were previously only accessible via the UI, but are now available when querying the API.
Problem to solve
As reported by a customer in a recent ticket, the "short token" value of a trigger token (of four digits) is currently only rendered in the UI when viewing a job:
The customer has expressed interest in this short value being accessible at an API level, when viewing the GET /projects/:id/jobs/:job_id
endpoint.
This could be useful where multiple trigger tokens are used, and for administrative/auditing purposes it should be identifiable through means other than the UI.
Proposal
We should expand the ability to grab the "short_token" value, and make this accessible in the API.
Intended users
Personas are described at https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/