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
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:
parent
af70194f71
commit
e561523600
|
|
@ -1,4 +1,9 @@
|
||||||
lint-and-format:
|
name: DevSecOps Pipeline - V1 Infrastructure
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint-and-format:
|
||||||
name: Code & Config Linting (Yamllint & Hadolint)
|
name: Code & Config Linting (Yamllint & Hadolint)
|
||||||
runs-on: host
|
runs-on: host
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -18,3 +23,29 @@ lint-and-format:
|
||||||
else
|
else
|
||||||
echo "Aucun Dockerfile détecté, étape ignorée."
|
echo "Aucun Dockerfile détecté, étape ignorée."
|
||||||
fi
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue