Need to know the username that triggered the manual job within the runner environment

I have a runner on a different server and I want to know the username of the person that initiated the manual job so I can do some further checks remotely and keep a proper deploy log on the remote server as well as in Gitlab.
Does anyone know if this information gets surfaced inside the job/runner environment?

The predefined CI/CD variables with GITLAB_USER_ prefix should be helpful to identify the user who started the manual job.

2 Likes

Thanks very much, don’t know how I missed this!

No worries, I did not know it myself. I knew about CI/CD variables, opened the documentation and searched for user - luckily I found something helpful :slight_smile:

1 Like