Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Ship a hook that blocks git hook bypasses

Abierto
#30 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@gregogun ya está trabajando en esto.

Desde el 24/10/2026.

  • #45 de @gregogun — abierto

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
72/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
git, node.js, typescript
Área
cli, security, testing

Línea de trabajo

Start by reading the existing doctor script and its node --test regression tests, then check the current Claude Code hook docs for the PreToolUse payload and deny response. Build the hook script and tests around the listed bypass forms and look-alikes, including separate git invocations and git -C; update loop-audit with installation instructions. Done when every specified bypass is denied, each look-alike is allowed, and the tests pass.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

ready-for-agent

Parent

#15

What to build

An agent cannot skip git hooks. A hook script that ships with loop-audit denies git commit with --no-verify or -n, including git -C <path> commit, and denies the env prefixes HUSKY=0, LEFTHOOK=0, LEFTHOOK=false, and LEFTHOOK_EXCLUDE=. Ordinary commands that contain -n, such as git log -n 5 and grep -n, still run. The script splits a command into separate git invocations and checks flags only on git commit, because a regex over the whole command cannot tell commit -n from log -n.

Acceptance criteria

  • Each bypass form above is denied, and each look-alike is allowed.
  • A node --test regression test pipes sample PreToolUse payloads into the script and asserts every deny and every allow, as the doctor tests do for their script.
  • The payload shape and the deny response match current Claude Code hook docs.
  • loop-audit says how to install the hook.
Lenguaje dominante
TypeScript
Estrellas
0
Forks
0
Merge medio
3 h 33 min
PR fusionados (30 d)
13

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de gregogun/gstack

Todos los issues de gregogun/gstack

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.