Skip to content

Commit db09e49

Browse files
committed
chore: add debug statements
Signed-off-by: Sonu Saha <[email protected]>
1 parent 5026483 commit db09e49

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/sbom.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ jobs:
6464
gem_name=$(echo "$name" | tr -d '"')
6565
version=$(echo "$versionInfo" | tr -d '"')
6666
# Check if the version contains a version constraint (e.g., ~>, >=, <=)
67-
if [[ "$gem_version" =~ [\~\>\<\=\ ] ]]; then
68-
echo "Skipping call to rubygems.org for version constraint: $gem_version"
69-
continue # Skip processing for this gem version
67+
if [[ "$versionInfo" =~ [\~\>\<\=\ ] ]]; then
68+
echo "Skipping call to rubygems.org for version constraint: $versionInfo"
69+
continue # Skip processing for this gem versionInfo
7070
else
7171
# Proceed with making the call to rubygems.org
72-
echo "Making call to rubygems.org for fixed version: $gem_version"
72+
echo "Making call to rubygems.org for fixed version: $versionInfo"
7373
# Your logic to call rubygems.org
7474
fi
7575
api_url="https://rubygems.org/api/v2/rubygems/${gem_name}/versions/${version}.json"

0 commit comments

Comments
 (0)