Skip to content

Commit

Permalink
HdfConverter: GitHub requires the uri to have a non-empty string value
Browse files Browse the repository at this point in the history
GitHub Advanced Security code scanning requires
'physicalLocation.artifactLocation.uri' to have a non-empty string
value.

Signed-off-by: Craig Andrews <[email protected]>
  • Loading branch information
candrews committed Jul 28, 2023
1 parent f11a3df commit 942cc0e
Show file tree
Hide file tree
Showing 2 changed files with 196 additions and 196 deletions.
2 changes: 1 addition & 1 deletion src/Sarif.Converters/HdfConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private static (ReportingDescriptor, IList<Result>) SarifRuleAndResultFromHdfCon
{
ArtifactLocation = new ArtifactLocation
{
Uri = new Uri(execJsonControl.SourceLocation.Ref ?? "", UriKind.Relative),
Uri = new Uri(execJsonControl.SourceLocation.Ref ?? "file:///", UriKind.RelativeOrAbsolute),
UriBaseId = "ROOTPATH",
},
Region = new Region
Expand Down
Loading

0 comments on commit 942cc0e

Please sign in to comment.