Merge pull request 'ci: re-trigger pipeline devsecops' (#2) from dev/m7s into main
DevSecOps Pipeline - Universal Quality Gate / System & Environment Check (push) Successful in 5s Details
DevSecOps Pipeline - Universal Quality Gate / Secret Detection (Gitleaks) (push) Successful in 27s Details
DevSecOps Pipeline - Universal Quality Gate / IaC Security & Vulnerability Scan (Trivy) (push) Successful in 22s Details

Reviewed-on: RYM/rym_horizon#2
This commit is contained in:
Marc Lasserre 2026-08-08 18:45:57 +00:00
commit 147cec4e63
1 changed files with 12 additions and 7 deletions

View File

@ -2,7 +2,7 @@ name: DevSecOps Pipeline - Universal Quality Gate
on: on:
push: push:
branches: [ "main", "develop" ] branches: [ "main", "develop", "dev/*" ]
pull_request: pull_request:
branches: [ "main" ] branches: [ "main" ]
@ -22,11 +22,14 @@ jobs:
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Gitleaks via Podman - name: Download and Run Gitleaks
run: | run: |
echo "🔍 Lancement du scan Gitleaks..." wget -q https://github.com/gitleaks/gitleaks/releases/download/v8.18.2/gitleaks_8.18.2_linux_x64.tar.gz
podman run --rm -v "$PWD":/path:z docker.io/zricethezav/gitleaks:v8.18.2 detect --source="/path" -v tar -xzf gitleaks_8.18.2_linux_x64.tar.gz gitleaks
./gitleaks detect --source="." --verbose --redact
trivy-iac-scan: trivy-iac-scan:
name: IaC Security & Vulnerability Scan (Trivy) name: IaC Security & Vulnerability Scan (Trivy)
@ -36,7 +39,9 @@ jobs:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Run Trivy IaC Scan - name: Run Trivy Scan
continue-on-error: true
run: | run: |
echo "🛡️ Analyse des fichiers d'infrastructure et des vulnérabilités..." wget -q https://github.com/aquasec/trivy/releases/download/v0.49.1/trivy_0.49.1_Linux-64bit.tar.gz
podman run --rm -v "$PWD":/path:z docker.io/aquasec/trivy:0.49.1 config /path tar -xzf trivy_0.49.1_Linux-64bit.tar.gz trivy
./trivy config .