diff --git a/src/Sarif.Converters/HdfConverter.cs b/src/Sarif.Converters/HdfConverter.cs index b775f38fc..03a50bc11 100644 --- a/src/Sarif.Converters/HdfConverter.cs +++ b/src/Sarif.Converters/HdfConverter.cs @@ -173,7 +173,7 @@ private static (ReportingDescriptor, IList) SarifRuleAndResultFromHdfCon { ArtifactLocation = new ArtifactLocation { - Uri = new Uri(execJsonControl.SourceLocation.Ref ?? "", UriKind.Relative), + Uri = new Uri(execJsonControl.SourceLocation.Ref ?? execJsonControl.Id, UriKind.Relative), UriBaseId = "ROOTPATH", }, Region = new Region