Skip to content

Commit e20da6f

Browse files
Jonathan D.A. Jewellclaude
andcommitted
fix: reject program_path="." to prevent scanning entire repos directory
When manifest entries have program_path set to "." (1189 of 1635), the fix scripts were scanning the current working directory instead of the target repo. Now falls back to REPOS_BASE/repo for "." paths. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fca3763 commit e20da6f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/dispatch-runner.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,9 @@ execute_entry() {
166166
program_path=$(echo "$entry" | jq -r '.program_path // ""')
167167

168168
# Resolve repo path: prefer program_path from manifest, fall back to REPOS_BASE/repo
169+
# Never use "." as program_path — that would scan the entire working directory
169170
local repo_path=""
170-
if [[ -n "$program_path" && -d "$program_path" ]]; then
171+
if [[ -n "$program_path" && "$program_path" != "." && "$program_path" != "./" && -d "$program_path" ]]; then
171172
repo_path="$program_path"
172173
else
173174
# Validate repo name (prevent directory traversal)

0 commit comments

Comments
 (0)