fix: add curl retry and timeout to gitleaks install step
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:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user