We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 027457f commit b1bd397Copy full SHA for b1bd397
.github/workflows/secret-scan.yml
@@ -16,9 +16,13 @@ jobs:
16
- name: Checkout
17
uses: actions/checkout@v4
18
with:
19
- fetch-depth: 1
+ # 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
22
23
- name: Run gitleaks
24
uses: gitleaks/gitleaks-action@v2
25
- 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