Skip to content

Commit

Permalink
fixing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
edkazcarlson-ms committed Oct 26, 2023
1 parent 83f5879 commit e5a291a
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 e5a291a

Please sign in to comment.