Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions scripts/auto-rebase/crypto_scan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 9 additions & 8 deletions scripts/auto-rebase/rebase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment thread
coderabbitai[bot] marked this conversation as resolved.
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"
Expand Down