Skip to content

fix(leak-scan): replace --all with --log-opts=--all for gitleaks v8.x#67

Merged
jorisjonkers-dev-agents[bot] merged 2 commits into
mainfrom
fix/gitleaks-log-opts
Jul 10, 2026
Merged

fix(leak-scan): replace --all with --log-opts=--all for gitleaks v8.x#67
jorisjonkers-dev-agents[bot] merged 2 commits into
mainfrom
fix/gitleaks-log-opts

Conversation

@jorisjonkers-dev-agents

Copy link
Copy Markdown
Contributor

Summary

  • Replaces --all with --log-opts="--all" in run_all_refs_scan(). gitleaks v8.x removed the standalone --all flag; the equivalent is now --log-opts="--all".
  • Observed failure: https://github.com/JorisJonkers-dev/homelab-deploy/actions/runs/29075684377Error: unknown flag: --all.
  • Updates the T-D2 regression test to assert the combined --log-opts="--all" form and adds a guard asserting the bare --all flag is absent.

Test plan

  • CI passes (151 tests)
  • After release, re-dispatch homelab-deploy Leak Scan — All Refs and confirm gitleaks actually scans all history

gitleaks v8.x removed the standalone --all flag; full history scan now
requires --log-opts="--all". Fixes the 'unknown flag: --all' error
observed in the first all-refs dispatch after the install fix landed.

Update the T-D2 test to assert --log-opts is present alongside --all
(the value passed to log-opts).
gitleaks v8.x removed the standalone --all flag; full history scan now
requires --log-opts="--all". Fixes the 'unknown flag: --all' error
observed in the first all-refs dispatch after the install fix landed.

Update the T-D2 test to assert the combined --log-opts="--all" form and
add a regression guard asserting the bare --all flag is absent.
@jorisjonkers-dev-agents jorisjonkers-dev-agents Bot added type: bug Something is broken or behaving incorrectly. area: tooling Reusable workflows, Gradle, templates, Renovate, and API tooling. labels Jul 10, 2026
@jorisjonkers-dev-agents jorisjonkers-dev-agents Bot merged commit d993ef7 into main Jul 10, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tooling Reusable workflows, Gradle, templates, Renovate, and API tooling. type: bug Something is broken or behaving incorrectly.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant