Backend: Running manual job from pipeline throws generic 403 for non-validated users

Summary

Since GitLab started requiring new free users to provide a valid credit card in order to use shared runners on GitLab.com, these users have been greeted with a descriptive error message indicating this new measure as soon as they triggered their first pipeline under these conditions.

However, if a user tries triggering a manual job instead, the error banner is displayed with a generic 403 error message: "An error occurred while making the request:

Pipeline_error_2022-02-14_at_14.30.29__1_

Steps to reproduce

  1. Start with a namespace that doesn't have CI/CD minutes available
  2. Create a new project
  3. Create a pipeline in this project with a manual job in it
  4. Create a free user account and add it as Maintainer of this project
  5. Logged as the free user, try to trigger the manual job from the pipeline overview

Example Project

Please refer to ZD Internal

What is the current bug behavior?

The user is shown a generic, uninformative 403 error

What is the expected correct behavior?

User should be shown the normal banner explaining the need for a credit card account validation:

Screenshot_2022-02-15_at_13.28.46

Output of checks

this bug happens on GitLab.com

Possible fixes

These users can be directed to the Shared Runners page, where the "Validate account" button is also available:

Screenshot_2022-02-15_at_13.28.46

Edited by Mark Nuzzo