Skip to content

Fix permissions check for runner usage by project

What does this MR do and why?

Fix permissions check for runner usage by project

Follow-up from Add GraphQL API for most used runners (!142817 - merged)

Two changes:

  • replace read_jobs_statistics with :read_runner_usage permission to match underlying service
  • use authorize! instead of custom code

Changelog: fixed

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

I relied on tests

Edited by Vladimir Shushlin

Merge request reports