46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: DevSecOps Pipeline - Universal Quality Gate
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main", "develop", "dev/*" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
health-check:
|
|
name: System & Environment Check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: System Check
|
|
run: |
|
|
echo "🚀 Pipeline CI/CD opérationnel sur le VPS !"
|
|
uname -a
|
|
|
|
gitleaks-scan:
|
|
name: Secret Detection (Gitleaks)
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Run Gitleaks
|
|
uses: https://github.com/gitleaks/gitleaks-action@v2
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
trivy-iac-scan:
|
|
name: IaC Security & Vulnerability Scan (Trivy)
|
|
runs-on: ubuntu-latest
|
|
needs: gitleaks-scan
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Run Trivy Scan
|
|
uses: https://github.com/aquasec/trivy-action@master
|
|
with:
|
|
scan-type: 'config'
|
|
hide-shortcut-text: 'true'
|