feat: split sonarqube and trivy in 2 workflows

This commit is contained in:
2026-03-20 18:00:19 +01:00
parent b7e09d4745
commit e5fa2269f3
2 changed files with 26 additions and 21 deletions

25
.github/workflows/sonarqube.yaml vendored Normal file
View File

@@ -0,0 +1,25 @@
on:
workflow_call:
secrets:
SONARQUBE_HOST:
required: true
SONARQUBE_TOKEN:
required: true
name: SonarQube
jobs:
sonarqube:
name: SonarQube
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@master
with:
fetch-depth: 0
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}

View File

@@ -1,10 +1,6 @@
on:
workflow_call:
secrets:
SONARQUBE_HOST:
required: true
SONARQUBE_TOKEN:
required: true
DEPENDENCYTRACK_URL:
required: true
DEPENDENCYTRACK_API_KEY:
@@ -12,24 +8,8 @@ on:
DEPENDENCYTRACK_PROJECT_UUID:
required: true
name: Quality Gate
name: Trivy
jobs:
sonarqube:
name: SonarQube
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@master
with:
fetch-depth: 0
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
trivy:
name: SBOM & Dependency Track
runs-on: ubuntu-latest