diff --git a/.gitea/workflows/test-ci.yml b/.gitea/workflows/test-ci.yml index 637b49b..62f7e43 100644 --- a/.gitea/workflows/test-ci.yml +++ b/.gitea/workflows/test-ci.yml @@ -15,15 +15,14 @@ jobs: gitleaks-scan: name: Secret Detection (Gitleaks) - runs-on: ubuntu-latest - container: - image: zricethezav/gitleaks:latest + runs-on: host steps: - - name: Check Out Code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Run Gitleaks Scan + - name: Fetch Code run: | - gitleaks detect --source . -v + git config --global --add safe.directory "$PWD" + git fetch --all + + - name: Run Gitleaks via Container Engine + run: | + echo "🔍 Lancement du scan Gitleaks..." + podman run --rm -v "$PWD":/path zricethezav/gitleaks:v8.18.2 detect --source="/path" -v