You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current Trufflehog Github Action is failing to run on commits if the message contains a single quote ('). I believe this is because the check here is using the github.event.commits object content without escaping it.
The current Trufflehog Github Action is failing to run on commits if the message contains a single quote (
'
). I believe this is because the check here is using thegithub.event.commits
object content without escaping it.TruffleHog Version
current (first introduced in a6364415e6bda69e5e307c0b33281bde6937e972)
Expected Behavior
The TH Github action completes, and reports pass or fail if there are secrets detected.
Actual Behavior
The TH Github action fails to start, and always reports an error.
Steps to Reproduce
git commit --allow-empty -m "Bob's example commit"
)Environment
Additional Context
If the cause suggested above is correct, this would also fail if the commit author's name or email contains a single quote (anything in the
commits
array specified here: https://docs.github.com/en/rest/using-the-rest-api/github-event-types?apiVersion=2022-11-28#pushevent).References
The text was updated successfully, but these errors were encountered: