Wrong GITLAB_USER_NAME while running pipeline manually

Summary

The users shown in the pipeline screen can be incorrect

Steps to reproduce

UserA will push into branch UserB runs the same branch pipeline

If you look into the pipeline screen, it says that UserA as triggered the pipeline (I.E the last person who pushed).

Also, predefined vars such as GITLAB_USER_NAME are wrong as they will match UserA profile instead of UserB

What is the expected correct behavior?

You should see UserB as the person who triggered the pipeline

Relevant logs and/or screenshots

gitlab_issue

My screenshot shows a wrong user as the pipeline runner

GitLab version : GitLab Community Edition 12.3.0