Skip to content

Commit 806d941

Browse files
author
Arnel Jan Sarmiento
committed
chore: Update Gitleaks step in CI workflow to include fetch-depth configuration and specify Gitleaks config file for improved secret detection.
1 parent 5b150bf commit 806d941

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ jobs:
5858
packages: read
5959
steps:
6060
- uses: actions/checkout@v4
61+
with:
62+
fetch-depth: 0
6163
- uses: gitleaks/gitleaks-action@v2
6264
env:
6365
GITHUB_TOKEN: ${{ github.token }}
6466
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}
65-
with:
66-
args: detect --source . --redact --no-git --config .gitleaks.toml
67+
GITLEAKS_CONFIG: .gitleaks.toml

0 commit comments

Comments
 (0)