Merge pull request 'fix: make gitleaks job tolerant of GitHub network failures' (#62) from dev into main
This commit was merged in pull request #62.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user