Hi! I have a pipeline in which deploy is preceded by a hold step.
In the deploy step I’d like to know WHO approved the deploy. I have made a script that calls the v2 API, first /workflow/:id/job, then /user/:id - this works exactly the way I want.
However, as is written several places, the v2 API can only use personal tokens (and the v1 API does not give me the necessary info).
Are there any other ways of achieving this? As the API calls come from within Circleci, one could imagine that there are other ways to secure the communication/authorise/authenticate the user.
And if not - can this info be fetched by scripts in the pipeline in any other way?