Open bobidle opened 2 weeks ago
The error is interesting: commit b9b115394405ca896c845359a03d5012fa5a6c34
exists in the repository but the action is trying to checkout b9b115394405ca896c845359a03d5012fa5a6c34~1
.
fatal: ambiguous argument 'b9b115394405ca896c845359a03d5012fa5a6c34~1'
The error message is from git rev-parse $HEAD~$COMMIT_LENGTH
, reducing $COMMIT_LENGTH
by one does not help as this excludes one commit from the scan.
It could be fixed by setting BASE=""
(see my linked pull request), but it is possible that i miss something else.
Test repositories and jobs
main
branch
fix_init_commit
branch
TruffleHog Version
Running the latest version of TruffleHog via
uses: trufflesecurity/trufflehog@main
Trace Output
https://gist.github.com/bobidle/901838a7c777cf91f374db8b51e69938
Expected Behavior
TruffleHog should scan the initial commit..
Actual Behavior
Process completed with exit code 128
Steps to Reproduce
.github/workflows
and file.github/workflows/trufflehog.yaml
git add ...
&git commit ...
&git push
Environment
ubuntu-latest
References