GitHub security audit CLI for LLM-assisted development environments
Project description
GitSentry
LLM 개발 환경(Claude Code, Codex 등)에서 GitHub push 전 보안 감사 CLI 도구.
기능
| 명령 | 설명 |
|---|---|
gitsentry audit . |
현재 저장소 공개 파일 보안 감사 |
gitsentry history . |
Git 커밋 히스토리 보안 감사 |
gitsentry scan --all |
계정 전체 GitHub 저장소 감사 |
gitsentry preview . |
Push 대상 vs 제외 파일 시각화 |
gitsentry pre-push |
Pre-push 훅 수동 실행 |
gitsentry generate-skill |
Claude Code 보안 감사 스킬 생성 |
설치
# pipx 권장 (전역 설치, 가상환경 불필요)
pipx install git+https://github.com/beret21/GitSentry.git
# 업데이트
pipx upgrade gitsentry
pipx가 없다면:
brew install pipx
pipx ensurepath
개발용 설치:
git clone https://github.com/beret21/GitSentry.git
cd GitSentry
pip install -e ".[dev]"
빠른 시작
# 현재 저장소 감사
gitsentry audit .
# Push 전 미리보기
gitsentry preview .
# pre-push 훅 설치
./scripts/install-hook.sh .
환경 변수 (.env)
GITHUB_TOKEN=ghp_your_token # 원격 저장소 감사에 필요
ANTHROPIC_API_KEY=sk-ant-... # --llm 옵션 사용 시 필요
탐지 패턴
DANGER (push 차단): API 키(sk-, ghp_, AKIA), 비밀번호, Bearer 토큰
WARNING (주의): LLM 내부 문서 (CLAUDE.md, LESSONS_LEARNED.md, DEVELOPMENT.md)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gitsentry-0.1.1.tar.gz
(15.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
gitsentry-0.1.1-py3-none-any.whl
(15.6 kB
view details)
File details
Details for the file gitsentry-0.1.1.tar.gz.
File metadata
- Download URL: gitsentry-0.1.1.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1eb576b7b91083131b87e79c8a7e21eb218df39225aa6956c7b2e0c86b6e7b56
|
|
| MD5 |
9a67e6f97b70dc510196e350059ee3e0
|
|
| BLAKE2b-256 |
0fe4a821de2b6c3b9c5a270c4ee5969b220761cedb066822835d491bb3abbcd3
|
File details
Details for the file gitsentry-0.1.1-py3-none-any.whl.
File metadata
- Download URL: gitsentry-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7ecc48838aca96d06cd267f4ae28aab6802879aed8c081ffc30bd9b249fbb1e
|
|
| MD5 |
ae93dbd579bba358f5f3bb4d69f54abf
|
|
| BLAKE2b-256 |
5e0c3cb12f05c1b6b118af12b57d003edea14c7b5801d8ae782e427ed7f680b1
|