Skip to content

Commit b1bd397

Browse files
committed
fix: gitleaks CI bug
1 parent 027457f commit b1bd397

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/secret-scan.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ jobs:
1616
- name: Checkout
1717
uses: actions/checkout@v4
1818
with:
19-
fetch-depth: 1
19+
# Gitleaks scans git commit ranges on PRs/pushes; shallow clones can
20+
# miss the base commit and cause "unknown revision" failures.
21+
fetch-depth: 0
2022

2123
- name: Run gitleaks
2224
uses: gitleaks/gitleaks-action@v2
2325
with:
24-
args: detect --source . --no-git --config .gitleaks.toml --redact
26+
# Let the action run its default git-range scan and only pass
27+
# scanner options.
28+
args: --config .gitleaks.toml --redact

0 commit comments

Comments
 (0)