File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -199,10 +199,14 @@ runs:
199
199
mkdir -p sboms
200
200
201
201
# Generate CycloneDX SBOM
202
- syft scan "$IMAGE" -o cyclonedx-json > "sboms/${{ inputs.package }}-cyclonedx.json"
202
+ if ! syft scan "$IMAGE" -o cyclonedx-json > "sboms/${{ inputs.package }}-cyclonedx.json" 2>/dev/null; then
203
+ echo "::warning::CycloneDX SBOM generation failed"
204
+ fi
203
205
204
206
# Generate SPDX SBOM
205
- syft scan "$IMAGE" -o spdx-json > "sboms/${{ inputs.package }}-spdx.json"
207
+ if ! syft scan "$IMAGE" -o spdx-json > "sboms/${{ inputs.package }}-spdx.json" 2>/dev/null; then
208
+ echo "::warning::SPDX SBOM generation failed"
209
+ fi
206
210
207
211
# Upload SBOMs as artifacts
208
212
echo "sbom_cyclonedx=sboms/${{ inputs.package }}-cyclonedx.json" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments