O job de segurança (gitleaks/gitleaks-action@v2) falhou com:
fatal: ambiguous argument '<sha>^..</sha>': unknown revision or path not in the working treeIsso acontece quando o workflow usa checkout shallow (histórico incompleto). No evento push, o gitleaks tenta escanear um range de commits (<from>^..<to>) e precisa do commit pai (^). Com fetch-depth padrão, esse pai pode não existir no runner.
Configurar actions/checkout@v4 no job security com fetch-depth: 0 para garantir que o range de commits esteja disponível.
.github/workflows/pipeline.yml.push.Gitleaks (secrets scan) completa sem erro.security passa a baixar histórico completo no runner.