Git Secret Scanner Skill

SkillDev tools

Scans the git history or commits pending push for secrets with gitleaks. SE-239/SE-247.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Git Secret Scanner Skill skill

What this skill tells your AI

The instructions your AI receives, as published by gonzalezpazmonica/savia in .claude/skills/git-secret-scanner/SKILL.md and read by ahel’s review.

Detecta secrets en el historial git o en commits pendientes de push.

Triggers

  • "escanea el historial"
  • "busca secrets en git"
  • "git secret scan"
  • "hay secrets en el repo?"
  • "gitleaks"

Uso rápido

Escanear historial completo

bash scripts/git-history-secret-scan.sh

Escanear solo desde un punto

bash scripts/git-history-secret-scan.sh --since HEAD~50
bash scripts/git-history-secret-scan.sh --since 2026-01-01
bash scripts/git-history-secret-scan.sh --since v1.0.0

Instalar hook pre-push (SE-247)

bash scripts/install-prepush-hook.sh

Outputs

FicheroContenido
output/security/history-scan-YYYYMMDD.jsonlFindings completos (git-ignorado)
output/security/history-scan-YYYYMMDD-summary.mdResumen legible
output/security/pre-push-findings.jsonlFindings del hook pre-push

Todos en output/security/ — git-ignorado (N3, confidencial).

Exit codes

CodeSignificado
0Sin findings — repo limpio
1Findings CRITICAL o HIGH
2Solo findings MEDIUM o LOW

Severidad

NivelQué incluye
CRITICALAWS keys, GCP tokens, GitHub PAT, private keys
HIGHContraseñas, certificados, credentials genéricos
MEDIUMURIs con credenciales embebidas
LOWPosibles falsos positivos, entropy alta sin regex match

Remediar un finding

bash scripts/git-history-secret-remediate.sh --commit <hash> --file <path>

El script genera los comandos git-filter-repo o BFG — no los ejecuta. El humano revisa y ejecuta con coordinación del equipo.

Gitleaks no instalado

El script detecta automáticamente si gitleaks está disponible y muestra instrucciones de instalación + alternativa Docker:

docker run --rm -v "$(pwd):/path" zricethezav/gitleaks:latest detect --source /path

Allowlist

Editar .gitleaks.toml en la raíz para excluir falsos positivos:

  • Hashes SHA256 de firmas de confidencialidad Savia (diff_hash=, signature=)
  • Fixtures de test
  • Ejemplos en documentación

Signals

GitHub stars
50
Forks
12
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
git-secret-scanner-gonzalezpazmonica
Source
github.com/gonzalezpazmonica/savia