fix(ci): run gitleaks container via podman on host
Execute Gitleaks inside Podman from the host runner to bypass Node.js PATH requirements in minimal containers.
This commit is contained in:
parent
087aa6f8db
commit
0ed6f139d2
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue