Security/GitHub/Tool

claude-code-secret-guard

by sAIdeffekt·Last observed 2026-10-26
★ 0 stars⑂ 0 forks

claude-code-secret-guard is a one-file hook utility for Claude Code and Git pre-commit. It blocks access to specified credential files during tool use and checks staged changes before commits; directory scan mode supports CI and pre-release checks.

Useful for

  • Use Claude Code hooks and pre-commit checks to prevent credential files from being read or committed.

Key features

  • The hooks block reads, writes, and shell commands that name specified credential files; a pre-commit hook checks staged changes.
  • Directory scan mode can be used in CI and before releases.

Requirements & limitations

  • Uses Python's standard library; on Windows, use `py -3` if `python` is not on PATH.

Project information

CategorySecurity
TypeTool
Author / organizationsAIdeffekt
LicenseMIT
Last observed2026-10-26

Discussion

No comments yet.

Sign in with Google to comment. Browsing is open to everyone.

Community vote