Skip to content

ci: verify release dependency inventories - #98

Merged
jsugg merged 2 commits into
mainfrom
fix/meaningful-release-sboms
Oct 13, 2026
Merged

jsugg merged 2 commits into
mainfrom
fix/meaningful-release-sboms

Conversation

@jsugg

@jsugg jsugg commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

Changes

Build release binaries with pinned cargo-auditable 0.7.7 so the existing pinned
Syft 1.42.3 scanner can recover the Rust dependency graph from each archive.

Add cargo xtask check-sbom FILE TARGET. It rejects empty inventories, wrong
root or crate versions, missing/default-feature direct dependencies, duplicate
references, and broken edges. Validate before archive upload and again before
generating checksums. Keep the existing checksum and provenance coverage.

Include xtask/ Rust changes in the CodeQL PR filter. The source-only filter
missed this build-time artifact validator; both OS analyses must run before
those changes merge.

Run the same six native archive jobs on PR release inputs at the exact PR head.
Keep the rehearsal read-only. Only tag pushes may attest files or enter the
protected draft-release job; manual dispatch still checks the exact tag and
publishes nothing. The SBOM action cannot upload release assets separately.

The inventory reports recorded Rust crates, not a complete native C/OS library
inventory. Scanner config omits temporary extraction-file records without
removing Cargo components or the archive hash.

Checks

  • Failing-first new validator API, nine xtask tests, current Clippy, actual
    Rust 1.85 xtask check, malformed/empty/missing real-scanner probes pass.
  • Clean scripts/check.sh full at ba019c9 and additive 6ca0308: 552 runtime
    tests and all normal
    static, dependency, documentation, source-package, and dry-run stages pass.
  • Fresh stripped host release binary and actual workflow smoke/staging/consumer
    blocks pass. Configured archive scan has 53 locked Cargo components and the
    exact 13 root runtime dependencies; its archive hash matches the tarball.
  • Workflow/action lint, shellcheck-all, docs/links, unchanged man generation,
    parsed permission/dependency gates, and PR head-substitution rejection pass.

The first-head rehearsal passed all six native archives and finalize. Downloaded
SBOMs report 53 Cargo components on macOS and 54 on Linux; all archive hashes
and 12 checksum rows match. These are earlier-head results, not final proof of
the corrective head. That earlier run skipped attestation and draft publishing.

Merge still requires current-head required checks, both CodeQL OS analyses,
and all six native archive,
inventory, and checksum jobs to pass. No project tag, manual remote dispatch,
attestation, release, or registry upload has been requested.

Embed the locked Rust graph in each binary and reject incomplete SBOMs.
Rehearse the six native archives on PRs without publication permissions.
The source-only filter missed artifact validation code in xtask.
Run both OS analyses before those changes can merge.
@jsugg
jsugg merged commit f582b25 into main Oct 13, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant