Scan recent commits in repository for secrets with trufflehog.
steps:
- uses: actions/checkout@v2
- uses: UnicornGlobal/trufflehog-actions-scan@master
with:
branch: ${{ github.head_ref }}
This will make sure it only runs on the branch that's been pushed
Based on: https://github.com/edplato/trufflehog-actions-scan
We don't want to add a special key when we already have a local copy of the git repo. There is no need to check remotely.
We also don't need special config flags so we removed that functionality too.
We had to change a lot to get it to work.