Skip to content

merge: synchroniser main avec origin/main #1

merge: synchroniser main avec origin/main

merge: synchroniser main avec origin/main #1

name: security-audit
on:
push:
branches:
- main
- security
pull_request:
workflow_dispatch:
jobs:
gitleaks:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Gitleaks scan (working tree)
run: |
docker run --rm -v "${PWD}:/repo" zricethezav/gitleaks:latest \
dir --source=/repo --config=/repo/.gitleaks.toml --verbose
- name: Gitleaks scan (git history)
run: |
docker run --rm -v "${PWD}:/repo" zricethezav/gitleaks:latest \
git --source=/repo --config=/repo/.gitleaks.toml --verbose
sonarqube:
runs-on: ubuntu-latest
needs: gitleaks
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
- name: SonarQube Quality Gate
uses: SonarSource/sonarqube-quality-gate-action@master
timeout-minutes: 5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}