Skip to content

Commit b5f51b9

Browse files
authored
Merge pull request #800 from OpenSPP/ken/improve_truffle-hog
[chore] Improve TruffleHog run
2 parents f5f986f + 1ae0fd8 commit b5f51b9

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/code-analysis.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,17 @@ jobs:
6767

6868
- name: Perform CodeQL Analysis
6969
uses: github/codeql-action/analyze@v3
70-
71-
- name: TruffleHog OSS
70+
71+
Trufflehog-Scan:
72+
runs-on: ubuntu-latest
73+
needs: CodeQL-Build
74+
steps:
75+
- name: Checkout repository (for Trufflehog - full history)
76+
uses: actions/checkout@v4
77+
with:
78+
fetch-depth: 0
79+
80+
- name: TruffleHog OSS (on pull_request)
7281
if: github.event_name == 'pull_request'
7382
uses: trufflesecurity/trufflehog@main
7483
with:
@@ -82,4 +91,4 @@ jobs:
8291
uses: trufflesecurity/trufflehog@main
8392
with:
8493
path: ./
85-
extra_args: --debug --only-verified --all # Scanning the entire repo
94+
extra_args: --debug --only-verified # Scanning the entire repo

0 commit comments

Comments
 (0)