Skip to content

Add DastProfileRun GraphQL mutation

Background

a Dast::Profile is a description of how to run an on-demand dast scan. it is comprised of a name and description and is associated with both a DastSiteProfile and a DastScannerProfile.

Related Issue(s)

Notes

What does this MR do?

adds new ee-only mutation for running Dast::Profiles behind a feature flag (dast_saved_scans).

Why?

this will help move us towards enabling customers to run scans without always having to select a DastSiteProfile and DastScannerProfile combination when running a dast on-demand scan i.e. a Dast::Profile promotes this grouping to a named abstraction.

GraphQL

mutation dastProfileRun($fullPath: ID!, $id: DastProfileID!) {
  dastProfileRun(
    input: {
      fullPath: $fullPath,
      id: $id,
    }
  ) {
    pipelineUrl
    errors
  }
}

Does this MR meet the acceptance criteria?

Conformity

Edited by Peter Leitzen

Merge request reports