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.

Test MR (working):
Screenshot_2025-05-30_at_16.25.55
Merged MR (broken):
Screenshot_2025-05-30_at_16.26.39

Why was this MR needed?

What's the best way to test this MR?

What are the relevant issue numbers?

Merge request reports

Loading