kobogithub/knowledge/security-gitleaks
Claude Code and agent skill by kobogithub/knowledge
Trust tier 2
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending
Checking that the SKILL.md file is still in the repository.
Secret detection and prevention with Gitleaks
Install
npx vskill@latest install kobogithub/knowledge/security-gitleaksSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as kobogithub/knowledge/security-gitleaks.
security-gitleaks
Deteccion de secrets y credenciales en repositorios git con Gitleaks. Previene que llaves de Supabase, JWT secrets, API keys y database URLs se suban al repositorio.
Overview
Gitleaks detecta secrets en:
- Codigo fuente: Archivos actuales en el working tree
- Historial git: Commits pasados que pueden contener secrets
- Pre-commit: Prevenir que secrets se commiteen en primer lugar
- CI/CD: Gate de seguridad en pipelines
Instalacion
Escaneo Basico
Detectar secrets en archivos actuales
Escanear historial git
Escanear cambios staged (pre-commit)
Configuracion Custom (.gitleaks.toml)
Configuracion base para Supabase + FastAPI
Pre-commit Hook
Instalacion con pre-commit framework
Git hook manual (sin framework)
Integracion con CI/CD (GitHub Actions)
Workflow basico
Workflow con reporte
Scan solo de PR changes
Remediacion de Secrets Expuestos
Si un secret fue commiteado
Gestion correcta de secrets
.gitignore esencial
Reporte de Hallazgos
Mejores Practicas
DO
- Configurar pre-commit hook desde el dia 1 del proyecto
- Usar
.gitleaks.tomlcon reglas custom para Supabase keys - Escanear historial git periodicamente (no solo archivos actuales)
- Revocar secrets inmediatamente si son detectados en commits
- Mantener
.env.exampleactualizado con todos los vars necesarios (sin valores reales) - Documentar en allowlist por que cada excepcion es segura
- Usar SARIF format en CI para integracion con GitHub Security tab
DON'T
- Commitear
.envfiles bajo ninguna circunstancia - Usar
--no-verifypara saltear el pre-commit hook - Ignorar findings sin investigar si son false positives
- Poner secrets en archivos de configuracion versionados
- Confiar en que
.gitignorees suficiente (el historial puede tener secrets) - Hardcodear tokens JWT de ejemplo que sean reales
- Olvidar regenerar keys despues de un leak
Tipos de Secrets a Detectar
| Tipo | Ejemplo Pattern | Severidad | |
|---|---|---|---|
| Supabase service_role | eyJhbGci... con service_role | CRITICAL | |
| Supabase anon key | eyJhbGci... con anon | MEDIUM | |
| Database URL | postgresql://user:pass@host | CRITICAL | |
| JWT Secret | JWT_SECRET=mysecret | HIGH | |
| Stripe Key | sk_live_... / sk_test_... | CRITICAL | |
| OpenAI Key | sk-... | HIGH | |
| AWS Keys | AKIA... | CRITICAL | |
| GitHub Token | ghp_... / gho_... | HIGH | |
| Private Key | -----BEGIN RSA PRIVATE KEY----- | CRITICAL | |
| Generic API Key | api_key=... | MEDIUM |
Recursos
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/security-gitleaks/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kobogithub/knowledge/security-gitleaks)