Commit 5c334a6
fix(qa): fail closed if vite-qa can't find a deps root
If no ancestor of the worktree has node_modules/vite, the walk-up loop exits
with depsRoot at the filesystem root, so `fs.allow: [worktreeRoot, '/']` would
re-open the arbitrary-file-read hole the previous commit closed. Throw instead,
refusing to start rather than allow-listing `/`.
Verified: a path with no vite ancestor throws; the real worktree still resolves
to the main checkout and boots (/@fs//etc/hosts stays 403).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 20ea57c commit 5c334a6
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
42 | 52 | | |
43 | 53 | | |
44 | 54 | | |
| |||
0 commit comments