From 8d561b3717c9a280960df99e1d817401da5b47f2 Mon Sep 17 00:00:00 2001 From: Haroon Khel Date: Mon, 16 Dec 2024 13:09:00 +0000 Subject: [PATCH] Add double quotes to find expression --- pipelines/build/common/sign_temurin_jsf.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelines/build/common/sign_temurin_jsf.groovy b/pipelines/build/common/sign_temurin_jsf.groovy index cb70594d2..9cd903d59 100644 --- a/pipelines/build/common/sign_temurin_jsf.groovy +++ b/pipelines/build/common/sign_temurin_jsf.groovy @@ -65,7 +65,7 @@ stage('Signing SBOM') { // Sign SBOMS sh ''' cd artifacts - for ARTIFACT in $(find . -name *sbom*.json | grep -v metadata.json); do + for ARTIFACT in $(find . -name "*sbom*.json" | grep -v metadata.json); do echo "Signing ${ARTIFACT}" java -cp "cyclonedx-lib/build/jar/*" temurin.sbom.TemurinSignSBOM --verbose --signSBOM --jsonFile "${ARTIFACT}" --privateKeyFile "$PRIVATE_KEY"