Skip to content

Commit

Permalink
Merge branch 'main' into user/ecarlson/markdown-tag-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
edkazcarlson-ms committed Nov 1, 2023
2 parents 3f0657f + e15be89 commit dce37e6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,11 @@ private string FindResolvedPath(RunDataCache dataCache, string workingDirectory,
#pragma warning restore VSTHRD108
}

if (Path.IsPathRooted(relativePath))
{
return relativePath;
}

// File contents embedded in SARIF.
bool hasHash = dataCache.FileDetails.TryGetValue(relativePath, out ArtifactDetailsModel model) && !string.IsNullOrEmpty(model?.Sha256Hash);
string embeddedTempFilePath = this.CreateFileFromContents(dataCache.FileDetails, relativePath);
Expand Down

0 comments on commit dce37e6

Please sign in to comment.