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:
|
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 }}
|
||||||
6
.github/workflows/trivy_fs.yaml
vendored
6
.github/workflows/trivy_fs.yaml
vendored
@@ -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)"
|
||||||
|
|||||||
Reference in New Issue
Block a user