-
-
Notifications
You must be signed in to change notification settings - Fork 168
Description
When the gitleaks-action workflow is executed through github workflows then internally it executes the command
/tmp/gitleaks-8.16.1/gitleaks detect --redact -v --exit-code=2 --report-format=sarif --report-path=results.sarif --log-level=debug --log-opts=--no-merges --first-parent e73a44d998131a96a95fd00b6be333ad5bb3dc09^..3d6334b5a261445b324da6cc29f5e35f81efb269

But when I'm executing this command directly I'm getting this error:
gitleaks detect --redact -v --exit-code=2 --log-level=debug --log-opts=--no-merges --first-parent 'e73a44d998131a96a95fd00b6be333ad5bb3dc09^..20849092156b04953da6648b9f07bd7d53ab13d7'
Error: unknown flag: --first-parent
Usage:
gitleaks detect [flags]
I need to understand why this --first-parent flag is not available for me or is their a workaround which I can try?
I've downloaded the same gitleaks version.