feat: add version inputs for sonarqube and dependency track
All checks were successful
Docker / Images (push) Successful in 40s
All checks were successful
Docker / Images (push) Successful in 40s
This commit is contained in:
8
.github/workflows/sonarqube.yaml
vendored
8
.github/workflows/sonarqube.yaml
vendored
@@ -1,5 +1,10 @@
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
version:
|
||||
required: false
|
||||
type: string
|
||||
default: ''
|
||||
secrets:
|
||||
SONARQUBE_HOST:
|
||||
required: true
|
||||
@@ -23,3 +28,6 @@ jobs:
|
||||
env:
|
||||
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
|
||||
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
||||
with:
|
||||
args: >
|
||||
-Dsonar.projectVersion=${{ inputs.version }}
|
||||
6
.github/workflows/trivy_fs.yaml
vendored
6
.github/workflows/trivy_fs.yaml
vendored
@@ -1,5 +1,10 @@
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
version:
|
||||
required: false
|
||||
type: string
|
||||
default: ''
|
||||
secrets:
|
||||
DEPENDENCYTRACK_URL:
|
||||
required: true
|
||||
@@ -41,6 +46,7 @@ jobs:
|
||||
-H "X-Api-Key: ${{ secrets.DEPENDENCYTRACK_API_KEY }}" \
|
||||
-H "Content-Type: multipart/form-data" \
|
||||
-F "project=${{ secrets.DEPENDENCYTRACK_PROJECT_UUID }}" \
|
||||
-F "projectVersion=${{ inputs.version }}" \
|
||||
-F "bom=@sbom.json")
|
||||
|
||||
echo "Response: $(cat /tmp/dt-response.json)"
|
||||
|
||||
Reference in New Issue
Block a user