fix: skip generated dirs in security scan
This commit is contained in:
parent
b8d7d5c6f3
commit
12b3557771
|
|
@ -3277,7 +3277,8 @@ security
|
|||
const st = fs.statSync(file);
|
||||
if (st.isDirectory()) {
|
||||
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));
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue