File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,24 +155,15 @@ jobs:
155155 with :
156156 fetch-depth : 0 # Full history for secret scanning
157157
158- - name : TruffleHog OSS (Git History Scan)
159- id : trufflehog-git
158+ - name : TruffleHog OSS
160159 uses : trufflesecurity/trufflehog@main
161- continue-on-error : true # Don't fail pipeline if BASE==HEAD or secrets found
160+ continue-on-error : true # Don't fail pipeline on secrets found
162161 with :
163162 path : ./
164- base : ${{ github.event.repository.default_branch }}
165- head : HEAD
163+ base : ${{ github.event.before || '' }}
164+ head : ${{ github.sha }}
166165 extra_args : --only-verified
167166
168- - name : TruffleHog Filesystem Scan (Fallback)
169- if : steps.trufflehog-git.outcome == 'failure'
170- uses : trufflesecurity/trufflehog@main
171- continue-on-error : true # Don't fail pipeline on secrets in filesystem scan
172- with :
173- path : ./
174- extra_args : --only-verified --no-update
175-
176167 # Stage 8: Docker Build and Push
177168 docker-build :
178169 name : Docker Build and Push
You can’t perform that action at this time.
0 commit comments