image trust show: add --format option #30400
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 181 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.311
Real PR Conversation Timeline
1 comments
"Review active on #30400"
general
weight: 0.35
ajoshua2004
Summary
Add a
--formatoption topodman image trust show, so users can selectand template the fields they need, the way other structured-output commands
already allow.
Fixes #30193
Changes
cmd/podman/images/trust_show.go- New
--formatflag, with shell completion fromtrust.Policy.-
--formataccepts a Go template, thetableprefix (headers), orjson.-
--format jsonuses the same code path as--json, so the output is identical.-
--formatcannot be combined with--jsonor--raw. Both combinationsreturn an error. Existing
--raw/--jsonprecedence is unchanged.- Headers are now built from
trust.Policyinstead ofimageReporter.Override keys are unchanged, so the default output is the same.
docs/source/markdown/podman-image-trust.1.md.in- Documents
--format, the placeholder list, and an example.hack/xref-helpmsgs-manpages-
image-trust .Keysadded toFormat_Exceptions..Keysis part oftrust.Policybut is never populated byimage trust show.-
--formatis dropped from the sharedsetsection of the man page,because
setdoes not accept--format.test/e2e/trust_test.go: new cases for Go template output,jsonvs--jsonparity,
tableheaders,-nwithtable, the two flag-conflict errors, anunknown-field template error, and an invalid template error.
test/system/750-trust.bats: matching system test cases.