Skip to content

Add enabling container-scanning for project with GraphQL

What does this MR do and why?

We want to help users configure their pipeline configuration to enable jobs related to Container Scanning analyzer. With this change we are introducing backend changes that allows them to do it with single GraphQL mutation.

How to set up and validate locally

  1. Create new project
  2. Go to GraphQL Explorer
  3. Trigger a mutation:
mutation {
  configureContainerScanning(input: { projectPath: "root/ds-test-2"}) {
    branch
    errors
    successPath
  }
}

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #349902 (closed)

Edited by Alan (Maciej) Paruszewski

Merge request reports