ci: gitleaks --no-git (scan só working tree, não histórico)
This commit is contained in:
parent
970d8dabd8
commit
180efcdff7
1 changed files with 2 additions and 2 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue