Compare commits

..

No commits in common. "147cec4e63b307ad6c2011254a73e63f154f4aaa" and "64a88d89e281ea5cab96f9f6c4b6eebcb43fc1b5" have entirely different histories.

1 changed files with 7 additions and 12 deletions

View File

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