Skip to content

WIP: Output the scanned resources in the summary

Craig Smith requested to merge add_scanned_resources_to_summary_223672 into master

What does this MR do?

Add the method and url of the resources scanned by a security scan.

query{
  project(fullPath: "root/rails-goat"){
    pipeline(iid: 2){
      securityReportSummary{
        dast{
          scannedResourcesCount
          scannedResources(limit: 20){
            nodes{
              method
              url
            }
          }
        }
      }
    }
  }
}
{
  "data": {
    "project": {
      "pipeline": {
        "securityReportSummary": {
          "dast": {
            "scannedResourcesCount": 14
            "scannedResources": {[
              { "url": "http://example.com/..", "method": "get"},
              ...
            ]}
          }
        }
      }
    }
  }
}

#223672 (closed)

Screenshots

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

Merge request reports