Skip to content

Commit

Permalink
feat: dynamic links support for scan results (#2838)
Browse files Browse the repository at this point in the history
  • Loading branch information
chen-keinan committed Sep 15, 2022
1 parent 8e03bbb commit b677d7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/scanner/local/scan.go
Expand Up @@ -489,6 +489,10 @@ func toDetectedMisconfiguration(res ftypes.MisconfResult, defaultSeverity dbType
res.References = append(res.References, primaryURL)
}

if len(primaryURL) == 0 && len(res.References) > 0 {
primaryURL = res.References[0]
}

return types.DetectedMisconfiguration{
ID: res.ID,
AVDID: res.AVDID,
Expand Down

0 comments on commit b677d7e

Please sign in to comment.