diff --git a/.github/workflows/test-actions.yml b/.github/workflows/test-actions.yml index 61476fe..3fc0f79 100644 --- a/.github/workflows/test-actions.yml +++ b/.github/workflows/test-actions.yml @@ -235,8 +235,8 @@ jobs: uses: trufflesecurity/trufflehog@0f58ae7c5036094a1e3e750d18772af92821b503 with: path: ./ - base: ${{ github.event.repository.default_branch }} - head: HEAD + base: ${{ github.event_name == 'pull_request' && github.event.repository.default_branch || '' }} + head: ${{ github.event_name == 'pull_request' && 'HEAD' || '' }} extra_args: --debug --only-verified - name: Scan shell scripts