Fix pipelines for forks
What does this MR do?
This is a quick followup to !5576 (merged). I missed a line and pipelines are failing in forks.
For example: https://gitlab.com/gitlab-community/gitlab-org/gitlab-runner/-/pipelines/1844013428
I tested this pipelines in this MR: gitlab-com/localization/tech-docs-forked-projects/prod/gitlab-runner!23 (closed)
But I seem to have missed this one line when I ported that change into the main project.

