Build details showing triggering user incorrectly as current_user
Summary
Viewing a build in Pipelines > Builds > Build shows current_user
as the user that started the build, even when that is not the case. For example, a build is triggered as part of a pipeline by user A
, however when user B
view the build as part of the pipeline, it shows that they (user B
) started the build. Viewing the associated pipeline then shows the correct user A
Steps to reproduce
-
user A
commits a change to a branch, triggering a pipeline with build -
user B
views the build
Expected behavior
Build page will show the user that started the build (user A
)
Actual behavior
Build shows current_user
as the user that started the build, when viewing the build.
Relevant logs and/or screenshots
Build https://dev.gitlab.org/gitlab/omnibus-gitlab/builds/258194
Pipeline https://dev.gitlab.org/gitlab/omnibus-gitlab/pipelines/26308
Output of checks
Seen on dev.gitlab.com