File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -388,6 +388,7 @@ jobs:
388388 echo "$IONOS_CA_CERT" > "${cert_file}"
389389
390390 echo "Beginning SBOM upload process..."
391+ echo "PARENT_VERSION: $PARENT_VERSION"
391392
392393 # Function to upload SBOM to Dependency Track via REST API
393394 upload_bom() {
@@ -400,7 +401,7 @@ jobs:
400401 return 0
401402 fi
402403
403- echo "Uploading SBOM ($bom_file) to project $project_id..."
404+ echo "Uploading SBOM ($bom_file) to project $project_id ($project_name) ..."
404405
405406 response=$(curl \
406407 --cacert "${cert_file}" \
@@ -411,12 +412,11 @@ jobs:
411412 -X POST "${DT_BASE_URL}/api/v1/bom" \
412413 -H "Content-Type: multipart/form-data" \
413414 -H "X-API-Key: ${DT_API_KEY}" \
414- -F "project=${project_id}" \
415415 -F "isLatest=true" \
416416 -F "autoCreate=true" \
417417 -F "parentUUID=${PARENT_UUID}" \
418- -F "projectName=${PARENT_VERSION }" \
419- -F "projectVersion=1.0.8 " \
418+ -F "projectName=${project_name }" \
419+ -F "projectVersion=${PARENT_VERSION} " \
420420 -F "bom=@${bom_file}")
421421
422422 http_code=$(echo "$response" | grep -o "HTTPSTATUS:[0-9]*" | cut -d: -f2)
You can’t perform that action at this time.
0 commit comments