From 7a0df8fe5b870a1fe472499bb430e5bd7d0a5428 Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Thu, 22 Oct 2026 14:57:07 +0100 Subject: [PATCH] Improve `globSync` call --- pr-checks/check-diagnostics.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pr-checks/check-diagnostics.ts b/pr-checks/check-diagnostics.ts index b77e6d34a..cc619aa9c 100644 --- a/pr-checks/check-diagnostics.ts +++ b/pr-checks/check-diagnostics.ts @@ -99,7 +99,10 @@ if (sarifPath === undefined) { } if (fs.statSync(sarifPath).isDirectory()) { - const sarifFiles = globSync(path.join(sarifPath, "**", "*.sarif")); + const sarifFiles = globSync("**/*.sarif", { + cwd: path.resolve(sarifPath), + absolute: true, + }); if (sarifFiles.length < 1) { throw new Error(`Unable to find any .sarif files in '${sarifPath}'.`);