refactor: single source of truth for getDiffRangesJsonFilePath and simplified getDiffRangeFilePaths

This commit is contained in:
Sam Robson
2026-03-25 15:42:39 +00:00
parent 521c3536d3
commit d5bb39fa0b
13 changed files with 3929 additions and 3990 deletions

View File

@@ -53,6 +53,12 @@ export function getTemporaryDirectory(): string {
: getRequiredEnvParam("RUNNER_TEMP");
}
const PR_DIFF_RANGE_JSON_FILENAME = "pr-diff-range.json";
export function getDiffRangesJsonFilePath(): string {
return path.join(getTemporaryDirectory(), PR_DIFF_RANGE_JSON_FILENAME);
}
export function getActionVersion(): string {
return __CODEQL_ACTION_VERSION__;
}