From c4b897565950261ab1b79356b54c69d17d16c970 Mon Sep 17 00:00:00 2001 From: Marc Lasserre Date: Fri, 7 Aug 2026 00:59:46 +0200 Subject: [PATCH] fix(ci): use actions/checkout v4 on host Use official checkout action to fetch repository before running Gitleaks in Podman. --- .gitea/workflows/test-ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/test-ci.yml b/.gitea/workflows/test-ci.yml index 62f7e43..92e1424 100644 --- a/.gitea/workflows/test-ci.yml +++ b/.gitea/workflows/test-ci.yml @@ -17,12 +17,11 @@ jobs: name: Secret Detection (Gitleaks) runs-on: host steps: - - name: Fetch Code - run: | - git config --global --add safe.directory "$PWD" - git fetch --all + - name: Checkout Code + uses: actions/checkout@v4 - - name: Run Gitleaks via Container Engine + - name: Run Gitleaks via Podman run: | echo "🔍 Lancement du scan Gitleaks..." podman run --rm -v "$PWD":/path zricethezav/gitleaks:v8.18.2 detect --source="/path" -v + \ No newline at end of file