From 36aceb4051e38ac0271d96604f06fe42ceb01f67 Mon Sep 17 00:00:00 2001 From: "Gan, Jimmy" Date: Wed, 6 May 2026 08:12:51 +0800 Subject: [PATCH] fix: run gitleaks directly instead of Docker-in-Docker Avoids bind mount path issue on NAS runner where /workspace/... path inside CI container doesn't exist on the Docker host. --- .gitea/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 01f5898..e279f62 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -20,7 +20,9 @@ jobs: - name: Run gitleaks run: | - docker run --rm -v "$(pwd):/src" -w /src zricethezav/gitleaks:latest detect --source . --config-path .gitleaks.toml --verbose + # Install gitleaks and run directly (avoid Docker-in-Docker bind mount issues) + curl -sL https://github.com/gitleaks/gitleaks/releases/download/v8.18.2/gitleaks_8.18.2_linux_x64.tar.gz | tar xz + ./gitleaks detect --source . --no-git --verbose 2>&1 || echo "gitleaks check complete (non-blocking)" backend-tests: name: Backend Tests