Skip to content

Show branch info in DAST profiles library

What does this MR do?

With these changes, the branch associated with DAST scans is displayed in the DAST profiles library. When branch does not exist, a warning is displayed along with a link to edit the scan.

How to test this?

  1. Enable the dast_branch_selection feature flag.
echo "Feature.enable(:dast_branch_selection)" | rails c
  1. Navigate to a project's DAST profiles library at /:namespace/:project/-/security/configuration/dast_profiles.

Screenshots (strongly suggested)

Context Preview
Current (feature flag disabled) Screen_Shot_2021-03-09_at_8.51.43_AM
Branch exists Screen_Shot_2021-03-09_at_8.47.12_AM
Branch does not exist Screen_Shot_2021-03-09_at_8.47.52_AM

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 #323789 (closed)

Edited by Paul Gascou-Vaillancourt

Merge request reports