Skip to content

Fix alert that references wrong property

Alexander Turinske requested to merge 213875-show-resolved-branch into master

What does this MR do?

Fix alert that always shows empty string instead of the branch name

  • the vulnerability.default_branch_name property is been renamed vulnerability.project_default_branch
  • update tests

Screenshots

Before: Always uses fallback message

image

After: Uses the branch name

resolved_alert

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to: #213875 (closed)

Edited by Alexander Turinske

Merge request reports