← Back to Pull requests

Take the final provenance subjects from the SBOM files only #4624

Closed
unknown closed this pull request without merging on Nov 25, 2026 14:22 UTC
View on GitHub
unknown unknown commented on Nov 11, 2026 12:17 UTC
Author

What type of PR is this?

/kind bug
/kind regression

What this PR does / why we need it:

The final provenance.json lists the files of the release. It took them from all SBOM elements with a digest and a location and dropped those located at NONE: the images, their layers and the binaries in them. Since protobom 0.7.0 (#4609), reading the SBOM leaves the download location of those packages empty, so the binaries in the images fall back to their file name and become subjects too. A mock release of master lists 160 subjects instead of 100, with paths like release/v1.38.0-beta.1/usr/bin/kubectl that don't exist in the bucket.

The subjects now come from the files of the SBOM, which are exactly the files of the release, so they no longer depend on how a reader represents NONE. The test covers a binary inside an image. This follows up on #4608, whose filter relied on NONE.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

The fix belongs here, not in protobom: reading NONE and NOASSERTION locations as empty is intended since protobom/protobom#494, as they are not URLs. The filter depended on the literal NONE, which bom passed through as the subject name with protobom 0.6.2.

Not released yet: v0.23.0 has protobom 0.6.2. With this change and protobom 0.7.0, the published v1.38.0-beta.0 SBOM gives exactly the subjects of its published provenance.json: the same 100 names and digests.

Does this PR introduce a user-facing change?

``release-note
NONE
``

Diff: 192 lines (+144 / -48) across 2 files Reviewer: xmudrii Review duration: 20285m
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 192 lines diff across 2 files
0.36
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.315
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4624"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 35.9% (MEDIUM) · Higher = larger blast radius
35.9%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 14.2% · Safe to merge
14.2%