Skip to content
Merged
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
3 changes: 2 additions & 1 deletion rust/generate-sbom/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ runs:
# Find all Cargo.toml files (excluding target dirs and root if workspace)
find . -name "Cargo.toml" -not -path "*/target/*" -not -path "*/.git/*" | while read cargo_file; do
crate_dir=$(dirname "$cargo_file")
if ls "$crate_dir"/*.cdx.* 2>/dev/null; then
# Check if SBOMs exist in this directory before trying to list them
if compgen -G "$crate_dir/*.cdx.*" > /dev/null 2>&1; then
echo ""
echo "SBOMs in $crate_dir:"
ls -lh "$crate_dir"/*.cdx.*
Expand Down
Loading