gitleaks / gitleaks-action

Protect your secrets using Gitleaks-Action
https://gitleaks.io
Other
319 stars 122 forks source link

Problem when adding workflow_dispatch #124

Open makowegas opened 1 year ago

makowegas commented 1 year ago

I'd like this action to scan for more than just the last commit, so I forked it to scan all code (not commits). After adding a new action, I wanted to create a selection for users to select via input: 'last_commit' - Scan the last commit 'whole_repo' - Scan the entire repository

When I use workflow_dispatch with this selection, the main action scans all commits, so previous leaks are detected and the action fails every time.

Is this the expected behavior of this action? Is it possible to configure this action to scan code, not commits?