git-security
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGit Security
Git 安全
Git security scanner with secret detection, commit validation, and pre-commit hooks.
一款具备秘密检测、提交验证和预提交钩子功能的Git安全扫描工具。
Capabilities
功能特性
- Secret detection (API keys, passwords, tokens)
- Pre-commit validation
- Commit message linting
- Branch protection checks
- Security policy validation
- 秘密检测(API密钥、密码、令牌)
- 预提交验证
- 提交消息校验
- 分支保护检查
- 安全策略验证
Usage
使用方法
bash
undefinedbash
undefinedScan for secrets
Scan for secrets
/job/.pi/skills/git-security/scan.js --path /repo/path
/job/.pi/skills/git-security/scan.js --path /repo/path
Install pre-commit hook
Install pre-commit hook
/job/.pi/skills/git-security/install-hook.js /repo/path
/job/.pi/skills/git-security/install-hook.js /repo/path
Validate commit message
Validate commit message
/job/.pi/skills/git-security/validate-commit.js "commit message"
/job/.pi/skills/git-security/validate-commit.js "commit message"
Check branch protection
Check branch protection
/job/.pi/skills/git-security/check-branch.js
undefined/job/.pi/skills/git-security/check-branch.js
undefinedSecret Patterns
秘密检测规则
- API keys (OpenAI, AWS, GitHub, etc.)
- Database connection strings
- Password patterns
- Token patterns
- Private keys
- API密钥(OpenAI、AWS、GitHub等)
- 数据库连接字符串
- 密码格式
- 令牌格式
- 私钥
When to Use
使用场景
- Before committing sensitive data
- CI/CD security checks
- Repository audits
- Security compliance
- 提交敏感数据之前
- CI/CD安全检查
- 仓库审计
- 安全合规
Inspired By
灵感来源
- ZeroClaw gitleaks integration
- Git hooks security patterns
- ZeroClaw gitleaks集成方案
- Git钩子安全模式