ci: gitleaks --no-git (scan só working tree, não histórico)
Some checks are pending
CI / Python (lint + test) (push) Waiting to run
CI / Secret scan (push) Waiting to run
CI / Benchmark (informational) (push) Blocked by required conditions
CI / TypeScript (lint + test + build) (push) Waiting to run

This commit is contained in:
Jesse Freitas 2026-04-24 08:46:32 -03:00
parent 970d8dabd8
commit 180efcdff7

View file

@ -54,8 +54,8 @@ jobs:
"https://github.com/zricethezav/gitleaks/releases/download/v${GL_VERSION}/gitleaks_${GL_VERSION}_linux_x64.tar.gz"
tar -xzf /tmp/gitleaks.tar.gz -C /tmp
sudo mv /tmp/gitleaks /usr/local/bin/gitleaks
- name: Scan full repository
run: gitleaks detect --source . --redact --verbose --exit-code 1
- name: Scan working tree (prevent NEW leaks)
run: gitleaks detect --source . --no-git --redact --verbose --exit-code 1
# CodeQL: desabilitado em repo private sem GitHub Advanced Security addon.
# Reativar quando repo tornar-se público ou GHAS for contratado.