Expose SecretParts in the JSON output (#5073)

This commit is contained in:
Brad Larsen
2026-06-25 13:25:11 -04:00
committed by GitHub
parent 39a1435e80
commit c1a1d6a28a
+2
View File
@@ -55,6 +55,7 @@ func (p *JSONPrinter) Print(_ context.Context, r *detectors.ResultWithMetadata)
Redacted string
ExtraData map[string]string
StructuredData *detectorspb.StructuredData
SecretParts map[string]string
}{
SourceMetadata: r.SourceMetadata,
SourceID: r.SourceID,
@@ -72,6 +73,7 @@ func (p *JSONPrinter) Print(_ context.Context, r *detectors.ResultWithMetadata)
Redacted: r.Redacted,
ExtraData: r.ExtraData,
StructuredData: r.StructuredData,
SecretParts: r.SecretParts,
}
out, err := json.Marshal(v)
if err != nil {