Skip to content

Commit 17644b2

Browse files
committed
make sure sarif GH rules pass
1 parent 7515421 commit 17644b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/results/conversion/sarifparser/sarifparser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ func getComponentSarifLocation(cmtType utils.CommandType, component formats.Comp
615615
logicalLocations = append(logicalLocations, logicalLocation)
616616
}
617617
}
618-
location := sarif.NewLocation().WithPhysicalLocation(sarif.NewPhysicalLocation().WithArtifactLocation(sarif.NewArtifactLocation().WithURI(utils.ToURI(filePath))))
618+
location := sarif.NewLocation().WithPhysicalLocation(sarif.NewPhysicalLocation().WithArtifactLocation(sarif.NewArtifactLocation().WithURI(filepath.ToSlash(filePath))))
619619
if len(logicalLocations) > 0 {
620620
location.WithLogicalLocations(logicalLocations)
621621
}

0 commit comments

Comments
 (0)