fix(ci): utilisation des actions natives gitleaks et trivy
DevSecOps Pipeline - Universal Quality Gate / System & Environment Check (push) Successful in 5s Details
DevSecOps Pipeline - Universal Quality Gate / Secret Detection (Gitleaks) (push) Failing after 33s Details
DevSecOps Pipeline - Universal Quality Gate / IaC Security & Vulnerability Scan (Trivy) (push) Has been skipped Details
DevSecOps Pipeline - Universal Quality Gate / System & Environment Check (pull_request) Successful in 5s Details
DevSecOps Pipeline - Universal Quality Gate / Secret Detection (Gitleaks) (pull_request) Failing after 22s Details
DevSecOps Pipeline - Universal Quality Gate / IaC Security & Vulnerability Scan (Trivy) (pull_request) Has been skipped Details

This commit is contained in:
Marc Lasserre 2026-08-08 19:26:48 +02:00
parent 0d9d8a80be
commit 59fbbfc152
Signed by: M7s
GPG Key ID: F74837410959661B
1 changed files with 13 additions and 10 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" ]
@ -13,7 +13,7 @@ jobs:
steps: steps:
- name: System Check - name: System Check
run: | run: |
echo "🚀 Pipeline CI/CD opérationnel !" echo "🚀 Pipeline CI/CD opérationnel sur le VPS !"
uname -a uname -a
gitleaks-scan: gitleaks-scan:
@ -22,11 +22,13 @@ 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: Run Gitleaks
run: | uses: https://github.com/gitleaks/gitleaks-action@v2
echo "🔍 Lancement du scan Gitleaks..." env:
podman run --rm -v "$PWD":/path:z docker.io/zricethezav/gitleaks:v8.18.2 detect --source="/path" -v GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
trivy-iac-scan: trivy-iac-scan:
name: IaC Security & Vulnerability Scan (Trivy) name: IaC Security & Vulnerability Scan (Trivy)
@ -36,7 +38,8 @@ jobs:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Run Trivy IaC Scan - name: Run Trivy Scan
run: | uses: https://github.com/aquasec/trivy-action@master
echo "🛡️ Analyse des fichiers d'infrastructure et des vulnérabilités..." with:
podman run --rm -v "$PWD":/path:z docker.io/aquasec/trivy:0.49.1 config /path scan-type: 'config'
hide-shortcut-text: 'true'