Skip to content

Validate SBOMs with CycloneDX CLI#33757

Open
mpreyskurantov wants to merge 1 commit into
26_1from
26_1-sbom-val-dev
Open

Validate SBOMs with CycloneDX CLI#33757
mpreyskurantov wants to merge 1 commit into
26_1from
26_1-sbom-val-dev

Conversation

@mpreyskurantov
Copy link
Copy Markdown
Contributor

No description provided.

@mpreyskurantov mpreyskurantov self-assigned this May 28, 2026
Copilot AI review requested due to automatic review settings May 28, 2026 11:02
@mpreyskurantov mpreyskurantov requested a review from a team as a code owner May 28, 2026 11:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds SBOM validation to CI/publishing workflows by installing CycloneDX CLI and running cyclonedx validate against generated SBOM JSON outputs.

Changes:

  • Pin CycloneDX CLI version via CYCLONEDX_CLI_VERSION workflow env.
  • Install CycloneDX CLI (Windows in publishing, Linux in build) and validate packages/sbom/dist/*.sbom.json.
  • Rename/upload step labels to reflect multiple SBOMs (“Upload SBOMs”).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/packages_publishing.yml Builds SBOMs on Windows publishing job, installs CycloneDX CLI, validates generated SBOMs, and uploads SBOM artifacts.
.github/workflows/build_all.yml Conditionally (push / dispatch input) builds SBOMs, installs CycloneDX CLI on the runner, validates SBOM outputs, and uploads them as artifacts.

Comment on lines +88 to +92
tool_dir="$RUNNER_TEMP/cyclonedx-cli"
mkdir -p "$tool_dir"
curl -fsSL "https://github.com/CycloneDX/cyclonedx-cli/releases/download/v${{ env.CYCLONEDX_CLI_VERSION }}/cyclonedx-win-x64.exe" -o "$tool_dir/cyclonedx.exe"
chmod +x "$tool_dir/cyclonedx.exe" || true
echo "$tool_dir" >> "$GITHUB_PATH"
Comment on lines +77 to +82
run: |
tool_dir="$RUNNER_TEMP/cyclonedx-cli"
mkdir -p "$tool_dir"
curl -fsSL "https://github.com/CycloneDX/cyclonedx-cli/releases/download/v${{ env.CYCLONEDX_CLI_VERSION }}/cyclonedx-linux-x64" -o "$tool_dir/cyclonedx"
chmod +x "$tool_dir/cyclonedx"
echo "$tool_dir" >> "$GITHUB_PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants