Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Ship a hook that blocks git hook bypasses

Đang mở
#30 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
git, node.js, typescript
Lĩnh vực
cli, security, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Merge trung bình
3 giờ 33 phút
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của gregogun/gstack

Tất cả issue của gregogun/gstack

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.