Skip to content

Commit

Permalink
fix build script
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Sep 12, 2023
1 parent cc66a1b commit d205fff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions xray/utils/sarifutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,10 @@ func GetRelativeLocationFileName(location *sarif.Location, invocations []*sarif.
if len(invocations) > 0 {
wd = GetInvocationWorkingDirectory(invocations[0])
}
filePath := location.PhysicalLocation.ArtifactLocation.URI
if filePath != nil {
return ExtractRelativePath(*filePath, wd)
GetLocationFileName(location)
filePath := GetLocationFileName(location)
if filePath != "" {
return ExtractRelativePath(filePath, wd)
}
return ""
}
Expand Down

0 comments on commit d205fff

Please sign in to comment.