fix(ci): run gitleaks container via podman on host
DevSecOps Pipeline - V1 Infrastructure / System & Environment Check (push) Successful in 0s Details
DevSecOps Pipeline - V1 Infrastructure / Secret Detection (Gitleaks) (push) Failing after 0s Details

Execute Gitleaks inside Podman from the host runner to bypass Node.js PATH requirements in minimal containers.
This commit is contained in:
Marc Lasserre 2026-08-06 23:48:10 +02:00
parent 087aa6f8db
commit 0ed6f139d2
Signed by: M7s
GPG Key ID: F74837410959661B
1 changed files with 9 additions and 10 deletions

View File

@ -15,15 +15,14 @@ jobs:
gitleaks-scan: gitleaks-scan:
name: Secret Detection (Gitleaks) name: Secret Detection (Gitleaks)
runs-on: ubuntu-latest runs-on: host
container:
image: zricethezav/gitleaks:latest
steps: steps:
- name: Check Out Code - name: Fetch Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run Gitleaks Scan
run: | 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