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)
|
||||
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
|
||||
|
||||
Loading…
Reference in New Issue