Multiple failures due to "403 Forbidden - Your account has been blocked" at Resource::Project.fabricate_via_api!

Summary

Multiple tests failed at API fabricate project due to "403 Forbidden - Your account has been blocked". Possibly related to #351177 (closed). Looking at 1 example failure, we see that the test failed at login first due to #351177 (closed)

1) Package Maven Repository with Gradle authentication_token_type: :project_deploy_token, maven_header_name: "Deploy-Token" pushes and pulls a maven package via gradle using project_deploy_token
     Got 0 failures and 2 other errors:
     1.1) Failure/Error: Flow::Login.sign_in_unless_signed_in
          
          QA::Page::Validatable::PageValidationError:
            navbar did not appear on QA::Page::Main::Menu as expected

Then it tried to fabricate project and hit 403

1.2) Failure/Error:
            Resource::Project.fabricate_via_api! do |project|
              project.name = "#{package_type}_package_project"
              project.initialize_with_readme = true
              project.visibility = :private
            end
          
          QA::Resource::Errors::ResourceFabricationFailedError:
            Fabrication of QA::Resource::Sandbox using the API failed (403) with `{"message":"403 Forbidden - Your account has been blocked."}`.
  • browser_ui/5_package/package_registry/maven_gradle_repository_spec.rb
  • ee/browser_ui/1_manage/group/prevent_forking_outside_group_spec.rb
  • ee/browser_ui/3_create/repository/restrict_push_protected_branch_spec.rb

Stack trace

Example from 1 failure

Failure/Error:
  Resource::Project.fabricate_via_api! do |project|
    project.name = "#{package_type}_package_project"
    project.initialize_with_readme = true
    project.visibility = :private
  end

QA::Resource::Errors::ResourceFabricationFailedError:
  Fabrication of QA::Resource::Sandbox using the API failed (403) with `{"message":"403 Forbidden - Your account has been blocked."}`.

Failed in canary & production

Screenshot / HTML page

Possible fixes