Fixed jh pipeline
Sync upstream code https://gitlab.com/gitlab-org/gitlab/-/merge_requests/119407#note_1377595368