Follow-up from "Prevent update of default branch if block_unprotecting_branches is set"

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

The following discussion from !136225 (merged) should be addressed:

  • @mcavoj started a discussion:

    thought(non-blocking): Just an idea for a follow-up refactoring: we have this these methods already in a few places. Maybe we could refactor it and create a new service Security::ProjectActiveScanResultPolicies or similar to make it easier to fetch active and applicable policies around the codebase.

Edited by 🤖 GitLab Bot 🤖