Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Ship a hook that blocks git hook bypasses

Aperta
#30 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
git, node.js, typescript
Ambito
cli, security, testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
TypeScript
Stelle
0
Fork
0
Merge medio
3h 33m
PR unite (30g)
13

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di gregogun/gstack

Tutte le issue di gregogun/gstack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.