Skip to content

Commit 1729f21

Browse files
committed
Fix gitleaks CI failure: use full clone for secret scanning
gitleaks-action requires commit history to scan PR diffs. Shallow clone (fetch-depth: 1) causes fatal SHA resolution errors.
1 parent c2f94a8 commit 1729f21

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v6
15+
with:
16+
fetch-depth: 0
1517

1618
- name: Scan for secrets
1719
uses: gitleaks/gitleaks-action@v2

0 commit comments

Comments
 (0)