Skip to content

Commit 33aba22

Browse files
committed
DevSecOps test
1 parent 6bedc5a commit 33aba22

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/devsecops-pipeline.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,15 @@ jobs:
2828
run: mkdir -p ./docs/reports
2929

3030
- name: TruffleHog OSS
31-
uses: trufflesecurity/trufflehog@v3.63.7
31+
uses: trufflesecurity/trufflehog@main
3232
with:
33-
path: ./
34-
extra_args: --debug --json
33+
extra_args: --debug --json
34+
35+
# Generate TruffleHog report in docs/reports
36+
- name: Generate TruffleHog report
37+
run: |
38+
echo "Running TruffleHog scan manually to save report"
39+
docker run --rm -v $(pwd):/pwd trufflesecurity/trufflehog:latest github --repo file:///pwd --json > ./docs/reports/trufflehog-results.json || true
3540
3641
# Upload TruffleHog results as artifact
3742
- name: Upload TruffleHog results

0 commit comments

Comments
 (0)