Skip to content

Commit 5017258

Browse files
committed
ci: scan archived tracked files for gitleaks
1 parent 93ae644 commit 5017258

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/secrets-scan.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,7 @@ jobs:
2424
2525
- name: Run gitleaks
2626
run: |
27-
gitleaks detect --source . --no-git --redact --exit-code 1
27+
rm -rf /tmp/repo-scan
28+
mkdir -p /tmp/repo-scan
29+
git archive --format=tar HEAD | tar -xf - -C /tmp/repo-scan
30+
gitleaks detect --source /tmp/repo-scan --no-git --redact --exit-code 1

0 commit comments

Comments
 (0)