Skip to content

Commit 902c355

Browse files
committed
SECCMP-1797: Pin trufflehog action and image to v3.94.2
Replace mutable @main tag with commit SHA 6bd2d14f for the GitHub Action, and :latest with :3.94.2 for the Docker image. Using @main or :latest means any commit pushed to the trufflehog repo takes effect immediately in our workflows - a supply chain risk.
1 parent 1f554c2 commit 902c355

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/trufflehog-scan.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ jobs:
7070
7171
- name: TruffleHog Scan
7272
id: trufflehog
73-
uses: trufflesecurity/trufflehog@main
73+
# Pinned to v3.94.2 commit SHA to prevent supply chain attacks via mutable tag
74+
uses: trufflesecurity/trufflehog@6bd2d14f7a4bc1e569fa3550efa7ec632a4fa67b # v3.94.2
7475
continue-on-error: true
7576
with:
7677
base: ${{ github.event.pull_request.base.sha }}
@@ -107,8 +108,9 @@ jobs:
107108
echo "$CHANGED_FILES"
108109
109110
# Scan only the changed files in their current state using filesystem scanner
111+
# Pinned to v3.94.2 to match the action version above
110112
SCAN_OUTPUT=$(docker run --rm -v "$(pwd)":/tmp -w /tmp \
111-
ghcr.io/trufflesecurity/trufflehog:latest \
113+
ghcr.io/trufflesecurity/trufflehog:3.94.2 \
112114
filesystem /tmp/ \
113115
--json \
114116
${{ steps.config.outputs.exclude_args }} \
@@ -266,7 +268,7 @@ jobs:
266268
267269
### Understanding Results
268270
| Type | Meaning | Action Required |
269-
|------|---------|-----------------|
271+
|------|---------|--------------------|
270272
| **Verified** | Confirmed active credential | **Must remove & rotate** - PR blocked |
271273
| **Unverified** | Potential secret pattern | Review recommended - PR can proceed |
272274

0 commit comments

Comments
 (0)