fix: make gitleaks job tolerant of GitHub network failures #62

Merged
jimmy merged 1 commits from dev into main 2026-05-06 13:15:07 +08:00
Showing only changes of commit 0f8cd900fd - Show all commits
+9 -3
View File
@@ -17,12 +17,18 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
continue-on-error: true
- name: Run gitleaks - name: Run gitleaks
run: | run: |
# Install gitleaks and run directly (avoid Docker-in-Docker bind mount issues) # Try to run gitleaks; GitHub may be unreachable from the runner
curl -sL https://github.com/gitleaks/gitleaks/releases/download/v8.18.2/gitleaks_8.18.2_linux_x64.tar.gz | tar xz if curl -fsSL --connect-timeout 10 "https://github.com/gitleaks/gitleaks/releases/download/v8.18.2/gitleaks_8.18.2_linux_x64.tar.gz" -o gitleaks.tar.gz 2>/dev/null; then
./gitleaks detect --source . --no-git --verbose 2>&1 || echo "gitleaks check complete (non-blocking)" tar xzf gitleaks.tar.gz
./gitleaks detect --source . --no-git --verbose 2>&1 || echo "gitleaks found issues (non-blocking)"
else
echo "⚠️ Skipping gitleaks — GitHub unreachable from CI runner"
fi
continue-on-error: true
backend-tests: backend-tests:
name: Backend Tests name: Backend Tests