Skip to main content

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 보안 감사 스킬 생성

설치

pip install gitsentry

# 업데이트
pip install --upgrade gitsentry

macOS에서 "externally-managed-environment" 오류 시: pip install gitsentry --break-system-packages

개발용 설치:

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)

Metadata

Release files for gitsentry 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gitsentry 0.1.4
File Size Uploaded Provenance
gitsentry-0.1.4.tar.gz 13.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for gitsentry 0.1.4
File Interpreter ABI Platform
gitsentry-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 29.6 kB

Release files / gitsentry-0.1.4.tar.gz

Download URL gitsentry-0.1.4.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c6dc8bfb545c7f1f38a96dd33d08f821ffc3a2d2666f97631f7af22644c86ec4
BLAKE2b-256 checksum
How to use checksums
7a66f308b107adcc42cc7f86158140160872ece88381d5a82ae78fa6cbc55d58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / gitsentry-0.1.4-py3-none-any.whl

Download URL gitsentry-0.1.4-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4efbcfc23a3636c52860662591c57e881182049d7a65939cd15e812b57d5d7a1
BLAKE2b-256 checksum
How to use checksums
b7feed2ec7cb19e3aa5a4c76e5c23cd2f3bc4d8c5adaff7744e0ee00ad67a1db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for gitsentry 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page