Skip to content

Commit 8c19f51

Browse files
committed
use OSS gitleak
1 parent eb193ce commit 8c19f51

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,12 @@ jobs:
6464
- uses: actions/checkout@v4
6565
with:
6666
fetch-depth: 0
67+
- name: Install gitleaks (OSS binary)
68+
run: |
69+
GITLEAKS_VERSION="8.28.0"
70+
curl -sSL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" -o gitleaks.tar.gz
71+
tar -xzf gitleaks.tar.gz
72+
sudo mv gitleaks /usr/local/bin/gitleaks
73+
gitleaks version
6774
- name: Run gitleaks
68-
uses: gitleaks/gitleaks-action@v2
75+
run: gitleaks detect --source . --verbose --redact

0 commit comments

Comments
 (0)