feat: add version inputs for sonarqube and dependency track
All checks were successful
Docker / Images (push) Successful in 40s

This commit is contained in:
2026-03-20 23:54:33 +01:00
parent ac3613b384
commit 77a5c67b71
2 changed files with 15 additions and 1 deletions

View File

@@ -1,5 +1,10 @@
on: on:
workflow_call: workflow_call:
inputs:
version:
required: false
type: string
default: ''
secrets: secrets:
SONARQUBE_HOST: SONARQUBE_HOST:
required: true required: true
@@ -23,3 +28,6 @@ jobs:
env: env:
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }} SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
with:
args: >
-Dsonar.projectVersion=${{ inputs.version }}

View File

@@ -1,5 +1,10 @@
on: on:
workflow_call: workflow_call:
inputs:
version:
required: false
type: string
default: ''
secrets: secrets:
DEPENDENCYTRACK_URL: DEPENDENCYTRACK_URL:
required: true required: true
@@ -41,6 +46,7 @@ jobs:
-H "X-Api-Key: ${{ secrets.DEPENDENCYTRACK_API_KEY }}" \ -H "X-Api-Key: ${{ secrets.DEPENDENCYTRACK_API_KEY }}" \
-H "Content-Type: multipart/form-data" \ -H "Content-Type: multipart/form-data" \
-F "project=${{ secrets.DEPENDENCYTRACK_PROJECT_UUID }}" \ -F "project=${{ secrets.DEPENDENCYTRACK_PROJECT_UUID }}" \
-F "projectVersion=${{ inputs.version }}" \
-F "bom=@sbom.json") -F "bom=@sbom.json")
echo "Response: $(cat /tmp/dt-response.json)" echo "Response: $(cat /tmp/dt-response.json)"