Skip to content

GitLab CI Kotlin DSLopensavvy.gitlab.ciArtifactscontainerScanning

containerScanning

Collects container scanning security reports.

The collected Container Scanning report uploads to GitLab as an artifact. GitLab can display the results of one or more reports in:

  • The merge request container scanning widget

  • The pipeline Security tab

  • The security dashboard

  • The Project Vulnerability report

Example

val containerScan by job {
    script {
        shell("docker run --rm -v /var/run/docker.sock:/var/run/docker.sock registry.gitlab.com/security-products/container-scanning")
    }

    artifacts {
        containerScanning("gl-container-scanning-report.json")
    }
}

External resources