fix: add curl retry and timeout to gitleaks install step
Lint / JS (eslint) (push) Successful in 15s
Lint / Python (ruff) (push) Successful in 8s
Lint / Python deps (pip-audit) (push) Successful in 38s
Lint / Secret scan (gitleaks) (push) Successful in 4s
Lint / Shell (shellcheck) (push) Successful in 6s

The runner intermittently times out (5m) downloading the gitleaks binary
from GitHub. Add --retry 3 --retry-delay 5 --max-time 120 so transient
network blips don't fail the job.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-23 00:52:23 -04:00
parent 35c54672af
commit 70cc233aec
+2 -1
View File
@@ -80,7 +80,8 @@ jobs:
- name: Install gitleaks - name: Install gitleaks
run: | run: |
curl -sSL https://github.com/gitleaks/gitleaks/releases/download/v8.21.2/gitleaks_8.21.2_linux_x64.tar.gz \ curl -sSL --retry 3 --retry-delay 5 --max-time 120 \
https://github.com/gitleaks/gitleaks/releases/download/v8.21.2/gitleaks_8.21.2_linux_x64.tar.gz \
| tar -xz gitleaks | tar -xz gitleaks
mv gitleaks /usr/local/bin/gitleaks mv gitleaks /usr/local/bin/gitleaks