File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import * as configUtils from "./config-utils";
18
18
import { addDiagnostic , makeDiagnostic } from "./diagnostics" ;
19
19
import { EnvVar } from "./environment" ;
20
20
import { FeatureEnablement , Feature } from "./feature-flags" ;
21
+ import { decodeGitFilePath } from "./git-utils" ;
21
22
import { isScannedLanguage , Language } from "./languages" ;
22
23
import { Logger , withGroupAsync } from "./logging" ;
23
24
import { DatabaseCreationTimings , EventReport } from "./status-report" ;
@@ -382,7 +383,9 @@ function getDiffRanges(
382
383
// Diff-informed queries expect the file path to be absolute.
383
384
const filename = path . join (
384
385
actionsUtil . getRequiredInput ( "checkout_path" ) ,
385
- fileDiff . filename ,
386
+ // GitHub API preserves non-ASCII characters in file paths as-is, so we only
387
+ // need to decode the special characters.
388
+ decodeGitFilePath ( fileDiff . filename ) ,
386
389
) ;
387
390
388
391
let currentLine = 0 ;
You can’t perform that action at this time.
0 commit comments