Git checks: follow `cd <dir> &&` in chained commands
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 68/100
Línea de trabajo
Start with the hook code that splits a command on && and ; and runs Git checks using its cwd. Trace how a plain cd part is parsed, including relative paths and ~ expansion, and how an unresolvable target should fall back to the hook directory. Add regression tests for a blocked cd dir && git add -A and an allowed equivalent using only fake paths and values.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
cd /path/proj && git add -A && git commit -m wip is probably the commonest way an agent stages files in another folder. The guard checks each && part on its own, but runs the Git checks against the hook's cwd, not the folder the cd moved to. A secrets file, or a settings file holding a secret, in /path/proj isn't caught.
Done when
- In a chain of
&&/;parts, a plaincd <dir>changes the folder used for the parts after it (relative to the current one, with~expanded). - If the folder can't be worked out (for example
cd "$VAR"), the guard falls back to the hook'scwdand keeps today's behaviour. - Regression tests cover a blocked
cd dir && git add -Aand an allowed one, with fake values only.
Found while reviewing #19.
Generated by Claude Code
- Lenguaje dominante
- Python
- Estrellas
- 1
- Forks
- 1
- Merge medio
- 2 h 28 min
- PR fusionados (30 d)
- 6
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de JTHCode/secretguard
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
JTHCode/secretguard#24 ·
Los mantenedores suelen responder en 1 día
-
documentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 90/100
JTHCode/secretguard#17 ·
Los mantenedores suelen responder en 1 día
-
documentation help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
JTHCode/secretguard#15 ·
Los mantenedores suelen responder en 1 día
-
help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
JTHCode/secretguard#16 ·
Los mantenedores suelen responder en 1 día
-
Add plugin manifest and hook configuration consistency testsPosiblemente ocupada @nyx60002 la tomó hoy. Abiertoenhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
JTHCode/secretguard#4 ·
Los mantenedores suelen responder en 1 día
Todos los issues de JTHCode/secretguard
Issues similares
-
docs(contributing): the two things that silently block a PRPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoavailable documentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 95/100
Nixitov/Riptide-Native#944 ·
Los mantenedores suelen responder en 1 día
-
area: middleware documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
omarelshamy25x/shamy-hijri#63 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
521xueweihan/HelloGitHub#4729 ·