fix(ci): use actions/checkout v4 on host
Use official checkout action to fetch repository before running Gitleaks in Podman.
This commit is contained in:
parent
0ed6f139d2
commit
c4b8975659
|
|
@ -17,12 +17,11 @@ jobs:
|
||||||
name: Secret Detection (Gitleaks)
|
name: Secret Detection (Gitleaks)
|
||||||
runs-on: host
|
runs-on: host
|
||||||
steps:
|
steps:
|
||||||
- name: Fetch Code
|
- name: Checkout Code
|
||||||
run: |
|
uses: actions/checkout@v4
|
||||||
git config --global --add safe.directory "$PWD"
|
|
||||||
git fetch --all
|
|
||||||
|
|
||||||
- name: Run Gitleaks via Container Engine
|
- name: Run Gitleaks via Podman
|
||||||
run: |
|
run: |
|
||||||
echo "🔍 Lancement du scan Gitleaks..."
|
echo "🔍 Lancement du scan Gitleaks..."
|
||||||
podman run --rm -v "$PWD":/path zricethezav/gitleaks:v8.18.2 detect --source="/path" -v
|
podman run --rm -v "$PWD":/path zricethezav/gitleaks:v8.18.2 detect --source="/path" -v
|
||||||
|
|
||||||
Loading…
Reference in New Issue