diff --git a/pkg/report/sarif.go b/pkg/report/sarif.go index 724691e77886..11b452867efe 100644 --- a/pkg/report/sarif.go +++ b/pkg/report/sarif.go @@ -337,7 +337,7 @@ func ToPathUri(input string, resultClass types.ResultClass) string { input = ref.Context().RepositoryStr() } - return strings.ReplaceAll(input, "\\", "/") + return strings.ReplaceAll(strings.ReplaceAll(input, "\\", "/"), "git::https:/", "") } func (sw *SarifWriter) getLocations(name, version, path string, pkgs []ftypes.Package) []location {