fix: skip generated dirs in security scan

This commit is contained in:
artale 2026-06-26 23:58:17 +02:00
parent b8d7d5c6f3
commit 12b3557771
1 changed files with 2 additions and 1 deletions

View File

@ -3277,7 +3277,8 @@ security
const st = fs.statSync(file); const st = fs.statSync(file);
if (st.isDirectory()) { if (st.isDirectory()) {
for (const name of fs.readdirSync(file)) { for (const name of fs.readdirSync(file)) {
if ([".git", "node_modules", "dist"].includes(name)) continue; // ponytail: default repo scan skips generated/ignored evidence junk; scan those paths directly when auditing receipts.
if ([".git", "node_modules", "dist", ".fable", "TEMP", "LOGS", ".runs"].includes(name)) continue;
walk(path.join(file, name)); walk(path.join(file, name));
} }
return; return;