← Back to Pull requests

[K9VULN-18515] sbom: add ccrid to SBOMEntity #537

Closed
unknown closed this pull request without merging on Oct 28, 2026 19:25 UTC
View on GitHub
unknown unknown commented on Oct 28, 2026 15:51 UTC
Author

Cloud Resource ID of the resource the SBOM is attached to (ARN, ARM resource ID or Full Resource Name).

<!--
The pull request:
Should only fix one issue or add one feature at a time.
Must update the test suite (if applicable) for the relevant functionality.
Should pass all status checks before being reviewed or merged.
Commit titles should be prefixed with general area of pull request's change.
Draft PRs should be prefixed with [WIP] in their title.
-->

What does this PR do?

Adds string ccrid = 17 to SBOMEntity and regenerates sbom/sbom.pb.go (Ccrid field and GetCcrid()).

The field holds the CCRID of the resource the SBOM is attached to: an ARN on AWS, an ARM resource ID on Azure, a Full Resource Name on GCP. It is empty when the resource has no CCRID (for example container images or Azure Marketplace images).

Motivation

CCRID unification across agentless scanning products: findings already carry a ccrid, SBOMs need the same identifier so that the backend can attach them to a cloud resource without relying on the id field. The agentless scanner and the agent will fill it once this is released.

Additional Notes

The change is additive: field number 17 is the next free one after cpu_architecture = 16, so old senders and receivers stay compatible in both directions.

The Go code was regenerated with the pinned toolchain (protoc 21.12, protoc-gen-go v1.34.1) for the sbom proto only. No release or version bump is part of this PR.

Possible Drawbacks / Trade-offs

None expected, the field is optional and unused until producers set it.

Describe how to test/QA your changes

go build ./sbom/, and check that git diff after running inv codegen.all is empty.

Reviewer's Checklist

Reviewers: please see the review guidelines.

Diff: 235 lines (+176 / -59) across 2 files Reviewer: frank-spano Review duration: 214m
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 235 lines diff across 2 files
0.37
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.327
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #537"
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: 37.1% (MEDIUM) · Higher = larger blast radius
37.1%
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.7% · Safe to merge
14.7%