Skip to main content

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

설치

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)

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.3.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitsentry-0.1.3-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file gitsentry-0.1.3.tar.gz.

File metadata

  • Download URL: gitsentry-0.1.3.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for gitsentry-0.1.3.tar.gz
Algorithm Hash digest
SHA256 9afa2e04013a8bde9d3f2f6b54efbeab80d403a3a0d189f5f1eaedc943b41bdb
MD5 8f2b888b7b5a11be46d9b69595701c6b
BLAKE2b-256 4c63773e639c213a175f3f6ef91fbe2bf067c5f58d70336cd4ebd82ff6d18ee1

See more details on using hashes here.

File details

Details for the file gitsentry-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: gitsentry-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for gitsentry-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 acba03704137e531d1c474cf885330cfa8b7a1dc433e3e2e4911dfcee7f62692
MD5 0752d64c8910ee5cf925d487fe126479
BLAKE2b-256 1b01924316f345dcdd3923aba742b147fddd4d623393a797c118c6f468d64d55

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page