DAST URL MR widget modal - Backend
Summary
this is the main backend issue for #220405 (closed)
Implementation Plan
-
create a new graphql resolver that parses the dast json report and responds with the first 20 urls (+ http verb) that were scanned as a list of strings [1]
[1] example:
query{
project(fullPath: "root/rails-goat"){
pipeline(iid: 2){
securityReportSummary{
dast{
scannedResourcesCount
scannedResources{
nodes{
requestMethod
url
}
}
}
}
}
}
}
{
"data": {
"project": {
"pipeline": {
"securityReportSummary": {
"dast": {
"scannedResourcesCount": 14
"scannedResources": {[
{ "url": "http://example.com/..", "method": "get"},
...
]}
}
}
}
}
}
}
/cc @craigmsmith
Edited by Craig Smith