fix(ci): add docker.io registry prefix for yamllint image
DevSecOps Pipeline - V1 Infrastructure / Code & Config Linting (Yamllint & Hadolint) (push) Successful in 8s Details
DevSecOps Pipeline - V1 Infrastructure / Secret Detection (Gitleaks) (push) Successful in 3s Details
DevSecOps Pipeline - V1 Infrastructure / IaC Security & Vulnerability Scan (Trivy) (push) Successful in 6s Details

Explicitly set docker.io domain prefix for yamllint container image to prevent Podman short-name resolution failure.
This commit is contained in:
Marc Lasserre 2026-08-07 01:42:00 +02:00
parent af70194f71
commit e561523600
Signed by: M7s
GPG Key ID: F74837410959661B
1 changed files with 32 additions and 1 deletions

View File

@ -1,3 +1,8 @@
name: DevSecOps Pipeline - V1 Infrastructure
on: [push, pull_request]
jobs:
lint-and-format:
name: Code & Config Linting (Yamllint & Hadolint)
runs-on: host
@ -18,3 +23,29 @@ lint-and-format:
else
echo "Aucun Dockerfile détecté, étape ignorée."
fi
gitleaks-scan:
name: Secret Detection (Gitleaks)
runs-on: host
needs: lint-and-format
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Run Gitleaks via Podman
run: |
echo "🔍 Lancement du scan Gitleaks..."
podman run --rm -v "$PWD":/path:z docker.io/zricethezav/gitleaks:v8.18.2 detect --source="/path" -v
trivy-iac-scan:
name: IaC Security & Vulnerability Scan (Trivy)
runs-on: host
needs: gitleaks-scan
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Run Trivy IaC Scan
run: |
echo "🛡️ Analyse des configurations d'infrastructure..."
podman run --rm -v "$PWD":/path:z docker.io/aquasec/trivy:0.49.1 config /path