From 5eacabb167d57b09a16494279f6eb16462e7e5d6 Mon Sep 17 00:00:00 2001 From: Marc Lasserre Date: Thu, 6 Aug 2026 23:41:36 +0200 Subject: [PATCH] fix(ci): use official gitleaks action Replace manual curl binary download with gitleaks/gitleaks-action to resolve CLI flag parsing issues. --- .gitea/workflows/test-ci.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/test-ci.yml b/.gitea/workflows/test-ci.yml index 4199aa1..80a5e6f 100644 --- a/.gitea/workflows/test-ci.yml +++ b/.gitea/workflows/test-ci.yml @@ -22,9 +22,7 @@ jobs: with: fetch-depth: 0 - - name: Run Gitleaks Scan - run: | - echo "🔍 Lancement du scan Gitleaks..." - curl -sSFL https://github.com/gitleaks/gitleaks/releases/download/v8.18.2/gitleaks_8.18.2_linux_x64.tar.gz | tar -xz gitleaks - ./gitleaks detect --source . -v - rm gitleaks + - name: Run Gitleaks + uses: gitleaks/gitleaks-action@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}