Repository navigation
ci: verify release dependency inventories - #98
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, wrongroot 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 filtermissed 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
Rust 1.85 xtask check, malformed/empty/missing real-scanner probes pass.
scripts/check.sh fullatba019c9and additive6ca0308: 552 runtimetests and all normal
static, dependency, documentation, source-package, and dry-run stages pass.
blocks pass. Configured archive scan has 53 locked Cargo components and the
exact 13 root runtime dependencies; its archive hash matches the tarball.
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.