From 4abf38ac1788b307dcda2e9a2eadcfbebe9b2943 Mon Sep 17 00:00:00 2001 From: Aaron Powell Date: Fri, 12 Jun 2026 12:20:40 +1000 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- eng/pr-risk-scan.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eng/pr-risk-scan.mjs b/eng/pr-risk-scan.mjs index 04464472..d3ca7ec0 100644 --- a/eng/pr-risk-scan.mjs +++ b/eng/pr-risk-scan.mjs @@ -350,7 +350,11 @@ function main() { continue; } - const stat = fs.statSync(absolutePath); + const stat = fs.lstatSync(absolutePath); + if (stat.isSymbolicLink()) { + skippedFiles.push(`${relativePath} (skipped: symbolic link)`); + continue; + } if (!stat.isFile()) { skippedFiles.push(relativePath); continue;