Skip to content

Commit 9539a98

Browse files
committed
ci: job gitleaks en CI + .gitleaksignore (hallazgo historico documentado)
1 parent b59f83a commit 9539a98

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,14 @@ jobs:
5050
working-directory: app
5151
- run: npm run test:e2e
5252
working-directory: app
53+
54+
gitleaks:
55+
runs-on: ubuntu-latest
56+
steps:
57+
- uses: actions/checkout@v4
58+
with:
59+
fetch-depth: 0
60+
- name: Instalar gitleaks
61+
run: curl -sL https://github.com/gitleaks/gitleaks/releases/download/v8.30.1/gitleaks_8.30.1_linux_x64.tar.gz | sudo tar xz -C /usr/local/bin gitleaks
62+
- name: Escanear secretos en todo el historial
63+
run: gitleaks git . --redact --no-banner

‎.gitleaksignore‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Token HAOS en commit histórico 55084e35 (working tree ya limpio: el script exige HAOS_TOKEN por env).
2+
# Repo PRIVADO — riesgo contenido. 🔴 SI EL REPO SE HACE PÚBLICO ALGÚN DÍA: rotar primero el token
3+
# de larga duración en HAOS y borrar esta entrada.
4+
55084e351a311143ae83f037f215ad2769229772:crear-servicio.sh:jwt:50

0 commit comments

Comments
 (0)