Add badge to external status check table if HMAC is enabled

What does this MR do and why?

This MR adds new badge to status check table

If HMAC signature is enabled, user will see badge with information about enabled status

The code changes introduce a new feature that displays a "shared secret" badge when a status check rule has HMAC enabled.

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.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Description UI
With HMAC enabled and without Screenshot 2024-08-01 at 00.39.31.png

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Go to project
  2. Settings -> Merge request
  3. Add new or edit existing external status check
  4. Create at least one status check with and without HMAC shared secret
  5. Go to Settings -> Repository -> Branch rules -> View details
  6. Make sure you see the badge for status check with HMAC enabled and no badge for status check without

Related to #433035 (closed)

Edited by Artur Fedorov

Merge request reports

Loading