Skip to content

Commit b4c8a7e

Browse files
committed
Fix CycloneDX SBOM generation command syntax and add error handling
Signed-off-by: DavidOsipov <[email protected]>
1 parent bfb1680 commit b4c8a7e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/sonarqube.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,11 @@ jobs:
134134
run: |
135135
# Install the correct package
136136
poetry run pip install cyclonedx-bom
137+
137138
# Generate SBOM in JSON format from Poetry project
138-
poetry run cyclonedx-py poetry -o cyclonedx_report.json --output-format JSON .
139+
# Fixed command with proper syntax and including dev dependencies
140+
poetry run cyclonedx-py poetry --with dev -o cyclonedx_report.json --of JSON .
141+
139142
# Add error handling and debugging
140143
if [ -f "cyclonedx_report.json" ]; then
141144
echo "✅ Successfully generated cyclonedx_report.json"

0 commit comments

Comments
 (0)