Skip to content

Commit 2190cb7

Browse files
Revert to changed-files scanning for performance
- Changed scan-scope back to 'changed-files' (only scan PR changes) - Changed scan-type back to 'filesystem' (current files only) - Reverted fetch-depth to 100 commits for faster performance - Optimized for org-wide deployment with fast, targeted scanning
1 parent 0a5eac3 commit 2190cb7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/org-required-trufflehog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
uses: ./.github/workflows/reusable-trufflehog.yml
2323
with:
2424
# Optimized settings for org-wide deployment
25-
scan-type: "both" # Comprehensive: scan both filesystem and git history
26-
scan-scope: "full-repo" # Scan entire repository for testing
25+
scan-type: "filesystem" # Fast: current files only
26+
scan-scope: "changed-files" # PR-focused: only scan changes
2727
fail-on-verified: "true" # Always fail on real secrets
2828
fail-on-unverified: "false" # Lenient for org-wide adoption
2929
runs-on: "ubuntu-latest" # Standard runner

.github/workflows/reusable-trufflehog.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ jobs:
5050
- name: Checkout repository
5151
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
5252
with:
53-
# Fetch full history for comprehensive secret scanning
54-
fetch-depth: 0
53+
# Limited history to reduce credential exposure risk
54+
# 100 commits covers most recent development for security scanning
55+
fetch-depth: 100
5556
persist-credentials: false
5657

5758
- name: Set TruffleHog version

0 commit comments

Comments
 (0)