Fix incorrect filepath when source is not relative to project file
What does this MR do?
In certain cases we were reporting the source path incorrectly by assuming it was always relative to the project file. By first checking whether the source is relative to ci project root, we can be more consistent in reporting location
What are the relevant issue numbers?
gitlab-org/gitlab#221149 (closed)
Does this MR meet the acceptance criteria?
-
Changelog entry added - [-] Documentation created/updated for GitLab EE, if necessary
-
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Job definition updated, if necessary -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by Daniel Paul Searles