Skip to content

Align published SBOMs with CI quality and modernize CycloneDX pipeline #774

Done

Description

@clawosiris

Problem

The SBOMs validated by Security CI are not the same SBOMs published in tagged releases.

Security CI post-processes and quality-gates seven CycloneDX JSON documents. At the v0.8.2 commit, those documents scored 8.60–8.67 with the pinned sbomqs v2.0.5. The release workflow separately regenerates raw JSON and XML documents, bypasses scripts/sbom_postprocess.py, and uploads them without applying the quality gate.

Independent scoring of the exact v0.8.2 release JSON with sbomqs v2.1.4 produced 6.97–7.02. The corresponding post-processed CI documents scored 8.08–8.13. The published documents omit the document license, build lifecycle, supplier metadata, and scoped completeness metadata that CI validates.

This is related in intent to greenbone/rust-gvm#20, but the primary defect here is release/CI artifact divergence rather than a score target by itself.

Scope

  • Make Security CI and tagged releases use one deterministic SBOM generation, enrichment, validation, and scoring contract.
  • Upgrade atomically to cargo-cyclonedx 0.5.10, CycloneDX 1.6, and sbomqs 2.1.4 while retaining the 8.3 quality floor.
  • Port the conservative license policy proven in Modernize CycloneDX SBOM pipeline and license conclusions rust-gvm#885: after a pinned cargo-deny license check succeeds, add matching declared/concluded licenses only for a sole simple allowed SPDX identifier. Preserve composite, custom, malformed, disallowed, and already-concluded license data.
  • Add exact crates.io distribution references only for eligible unqualified Cargo PURLs.
  • Do not synthesize CPEs, overstate global completeness, or otherwise add unsupported metadata for score.
  • Ensure the release archive contains the exact validated documents and that policy tests fail closed when release and CI drift.

Acceptance criteria

  • Security and release workflows pin cargo-cyclonedx 0.5.10 and emit CycloneDX 1.6.
  • Security and release workflows pin sbomqs 2.1.4 and enforce the unchanged 8.3 threshold against the JSON documents they retain or publish.
  • Release JSON documents pass through the same deterministic post-processing contract as Security CI before packaging.
  • A pinned cargo-deny license check gates the declared/concluded transform in every workflow that applies it.
  • JSON and XML release documents validate as CycloneDX 1.6; JSON enrichment remains schema-valid.
  • Tests document the license, PURL/distribution, workflow-drift, malformed-input, and fail-closed behaviors.
  • Release verification checks the expected SBOM archive contents and checksum without assuming score-only metadata.
  • Documentation describes the generated formats, validation, scoring floor, and deliberate exclusions.

Completion evidence

  • Implemented by Align published SBOMs with Security CI quality contract #775 and merged into main as c7bbcf76790db996c54769ddb6ac4639a81815bd on 2026-11-29.
  • Security CI and tagged releases both call scripts/generate-sboms.sh, which verifies the pinned tool versions, gates enrichment on cargo deny --config deny.toml --locked check licenses, validates all JSON/XML documents as CycloneDX 1.6, and enforces the inclusive 8.3 score floor.
  • All 14 generated documents passed schema validation; the seven exact JSON documents scored 8.35–8.56 with sbomqs 2.1.4.
  • The release verifier checks the flat seven-JSON/seven-XML archive, complete score report, release version, conservative metadata policy, and SHA-256 checksum before upload.
  • The merged head passed 141 Python policy tests plus the full CI, Security, Semgrep, SBOM Quality, packaging, container, and E2E check set.

Evidence

Agent: Thoth
Model: openai/gpt-5.6-sol
Thinking: high
Bot-Owner: @llunved

Activity

  1. added
    enhancement
    ci
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cienhancementrelease

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions