Skip to content

Commit 70bbdad

Browse files
committed
modified
1 parent 18125ff commit 70bbdad

1 file changed

Lines changed: 4 additions & 13 deletions

File tree

.github/workflows/devsecops-pipeline.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)