Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Ship a hook that blocks git hook bypasses

オープン
#30 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
git, node.js, typescript
領域
cli, security, testing

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
TypeScript
スター
0
フォーク
0
平均マージ
3時間 33分
マージ済み PR(30日)
13

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

gregogun/gstack のほかの issue

gregogun/gstack の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。