Link to line number in trace of resources scanned by DAST
Summary
When viewing the security scan on an MR, clicking the View details
of the scanned URLs does not navigate to the line number in the trace where the scanned resources are listed.
Steps to reproduce
- Create an MR for a project that includes a DAST scan.
- Once the DAST job is complete, in the MR's Security Scan section click
Expand
- Click the
View details
link in the DAST section
Example Project
craigmsmith/craigmsmith-railsgoat-example!1 (closed)
What is the current bug behavior?
The link goes to the bottom of the job page.
What is the expected correct behavior?
The link should go to the line number where the scanned URLs are listed. In the example project that line should be 373.
Possible fixes
The View details
link comes from the DAST MR endpoint /:group/:project/-/merge_requests/:id/dast_reports
!28849 (closed) adds the line number to the Security::Scan
so that it might be used to build the URL with a line number.
Even if the line number is added, the line number anchor won't work until #211793 (closed) is addressed.