Add scanned resources back to DAST security summary
DAST scanned resources were being used by Pipeline Security Summary and Grouped Security Reports.
They had been removed temporarily until #322349 (closed) is resolved.
Implementation Plan
Add scannedResources
and scannedResourcesCount
back to:
- Pipeline Security Summary
- Disabled in !54255 (merged)
- MR grouped security reports
- Disabled in !61551 (merged)
GraphQL changes
diff --git a/ee/app/assets/javascripts/security_dashboard/graphql/queries/pipeline_security_report_summary.query.graphql b/ee/app/assets/javascripts/security_dashboard/graphql/queries/pipeline_security_report_summary.query.graphql
index a5275361fe8..1357d6053af 100644
--- a/ee/app/assets/javascripts/security_dashboard/graphql/queries/pipeline_security_report_summary.query.graphql
+++ b/ee/app/assets/javascripts/security_dashboard/graphql/queries/pipeline_security_report_summary.query.graphql
@@ -5,14 +5,13 @@ query($fullPath: ID!, $pipelineIid: ID!) {
dast {
vulnerabilitiesCount
scannedResourcesCsvPath
+ scannedResourcesCount @include(if: $flagEnabled)
+ scannedResources @include(if: $flagEnabled) {
+ nodes {
+ requestMethod
+ url
+ }
+ }
}
sast {
vulnerabilitiesCount