Skip to content

Automatically select DAST profile

Paul Gascou-Vaillancourt requested to merge cherry-pick-ba7ae3a3 into master

What does this MR do?

This reintroduces the changes from !48940 (merged) that had to be reverted because of a bug in mock-apollo-client that broke master. More info about the failure can be found here: #292223 (closed)

Now that the bug has been fixed in the library, we can re-merge those changes with confidence that they won't break master again.


When there is only a single scanner or site profile available to be selected in the on-demand scan's selectors, that profile will be automatically selected to save the user a few clicks.

How to test this?

  1. Make sure you don't have more than one DAST scanner and/or site profile.
  2. Open the on-demand scans form at :group/:project/-/security/configuration.
  3. The only available profile should be automatically selected in the corresponding dropdown(s).

Screenshots (strongly suggested)

auto_select

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #246892 (closed)

Edited by Paul Gascou-Vaillancourt

Merge request reports