feat: split sonarqube and trivy in 2 workflows
This commit is contained in:
25
.github/workflows/sonarqube.yaml
vendored
Normal file
25
.github/workflows/sonarqube.yaml
vendored
Normal 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 }}
|
||||||
@@ -1,10 +1,6 @@
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
secrets:
|
secrets:
|
||||||
SONARQUBE_HOST:
|
|
||||||
required: true
|
|
||||||
SONARQUBE_TOKEN:
|
|
||||||
required: true
|
|
||||||
DEPENDENCYTRACK_URL:
|
DEPENDENCYTRACK_URL:
|
||||||
required: true
|
required: true
|
||||||
DEPENDENCYTRACK_API_KEY:
|
DEPENDENCYTRACK_API_KEY:
|
||||||
@@ -12,24 +8,8 @@ on:
|
|||||||
DEPENDENCYTRACK_PROJECT_UUID:
|
DEPENDENCYTRACK_PROJECT_UUID:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
name: Quality Gate
|
name: Trivy
|
||||||
jobs:
|
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:
|
trivy:
|
||||||
name: SBOM & Dependency Track
|
name: SBOM & Dependency Track
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
Reference in New Issue
Block a user