diff --git a/scripts/auto-rebase/crypto_scan.sh b/scripts/auto-rebase/crypto_scan.sh index 4c1d27cd02..64740b5473 100755 --- a/scripts/auto-rebase/crypto_scan.sh +++ b/scripts/auto-rebase/crypto_scan.sh @@ -66,6 +66,7 @@ cp -a "${REPOROOT}/etcd/cmd" "${SCAN_DIR}/etcd-cmd" cp -a "${REPOROOT}/etcd/vendor" "${SCAN_DIR}/etcd-deps" if ! podman run --rm \ + -e LC_ALL=C.UTF-8 \ -v "${SCAN_DIR}:/workspace:z" \ "${SCANNER_IMAGE}" \ /workspace > "${CBOM_OUTPUT}"; then diff --git a/scripts/auto-rebase/rebase.sh b/scripts/auto-rebase/rebase.sh index e384561a19..2721e175e7 100755 --- a/scripts/auto-rebase/rebase.sh +++ b/scripts/auto-rebase/rebase.sh @@ -1341,14 +1341,15 @@ rebase_to() { # Generate CBOM (Cryptographic Bill of Materials) if [[ "${SKIP_CRYPTOSCAN:-}" != "true" ]]; then title "## Generating CBOM (Cryptographic Bill of Materials)" - ./scripts/auto-rebase/crypto_scan.sh - if [[ -n "$(git status -s cbom-microshift.json sbom-microshift-crypto.spdx.json)" ]]; then - echo "Updating CBOM" - git add cbom-microshift.json sbom-microshift-crypto.spdx.json - git commit -m "update cbom" - else - echo "No changes to CBOM." - fi + if ./scripts/auto-rebase/crypto_scan.sh; then + if [[ -n "$(git status -s cbom-microshift.json sbom-microshift-crypto.spdx.json)" ]]; then + echo "Updating CBOM" + git add cbom-microshift.json sbom-microshift-crypto.spdx.json + git commit -m "update cbom" + else + echo "No changes to CBOM." + fi + fi fi title "# Removing staging directory"