From af70194f710320964b51e40000f8b57eac965d75 Mon Sep 17 00:00:00 2001 From: Marc Lasserre Date: Fri, 7 Aug 2026 01:38:57 +0200 Subject: [PATCH] fix(ci): add docker.io registry prefix for yamllint image Explicitly set docker.io domain prefix for yamllint container image to prevent Podman short-name resolution failure. --- .gitea/workflows/test-ci.yml | 36 ++---------------------------------- 1 file changed, 2 insertions(+), 34 deletions(-) diff --git a/.gitea/workflows/test-ci.yml b/.gitea/workflows/test-ci.yml index 7b8dfa4..93da4d9 100644 --- a/.gitea/workflows/test-ci.yml +++ b/.gitea/workflows/test-ci.yml @@ -1,9 +1,4 @@ -name: DevSecOps Pipeline - V1 Infrastructure - -on: [push, pull_request] - -jobs: - lint-and-format: +lint-and-format: name: Code & Config Linting (Yamllint & Hadolint) runs-on: host steps: @@ -13,40 +8,13 @@ jobs: - name: Run Yamllint run: | echo "🧹 Verification de la syntaxe YAML..." - podman run --rm -v "$PWD":/data:z cytopia/yamllint -d "{extends: relaxed, rules: {line-length: disable}}" . + podman run --rm -v "$PWD":/data:z docker.io/cytopia/yamllint -d "{extends: relaxed, rules: {line-length: disable}}" . - name: Run Hadolint (Dockerfiles) run: | echo "🐳 Analyse des Dockerfiles..." - # Ne s'execute que si des Dockerfiles existent dans le repo if [ -n "$(find . -maxdepth 3 -name 'Dockerfile*')" ]; then podman run --rm -i docker.io/hadolint/hadolint < Dockerfile 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