File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -578,7 +578,7 @@ export async function uploadFiles(
578578 features ,
579579 logger ,
580580 ) ;
581- sarif = filterAlertsByDiffRange ( sarif ) ;
581+ sarif = filterAlertsByDiffRange ( sarif , logger ) ;
582582 sarif = await fingerprints . addFingerprints ( sarif , checkoutPath , logger ) ;
583583
584584 const analysisKey = await api . getAnalysisKey ( ) ;
@@ -850,7 +850,7 @@ export class InvalidSarifUploadError extends Error {
850850 }
851851}
852852
853- function filterAlertsByDiffRange ( sarif : SarifFile ) : SarifFile {
853+ function filterAlertsByDiffRange ( sarif : SarifFile , logger : Logger ) : SarifFile {
854854 const diffRangeFilePath = path . join (
855855 actionsUtil . getTemporaryDirectory ( ) ,
856856 "pr-diff-range" ,
@@ -890,6 +890,7 @@ function filterAlertsByDiffRange(sarif: SarifFile): SarifFile {
890890 return false ;
891891 }
892892 const locationPath = path . join ( checkoutPath , uri ) ;
893+ logger . debug ( `Alert location URI: ${ uri } , Path: ${ locationPath } ` ) ;
893894 return diffRanges . some (
894895 ( range ) =>
895896 range . path === locationPath &&
You can’t perform that action at this time.
0 commit comments