Expose SecretParts in the JSON output (#5073)
This commit is contained in:
@@ -55,6 +55,7 @@ func (p *JSONPrinter) Print(_ context.Context, r *detectors.ResultWithMetadata)
|
|||||||
Redacted string
|
Redacted string
|
||||||
ExtraData map[string]string
|
ExtraData map[string]string
|
||||||
StructuredData *detectorspb.StructuredData
|
StructuredData *detectorspb.StructuredData
|
||||||
|
SecretParts map[string]string
|
||||||
}{
|
}{
|
||||||
SourceMetadata: r.SourceMetadata,
|
SourceMetadata: r.SourceMetadata,
|
||||||
SourceID: r.SourceID,
|
SourceID: r.SourceID,
|
||||||
@@ -72,6 +73,7 @@ func (p *JSONPrinter) Print(_ context.Context, r *detectors.ResultWithMetadata)
|
|||||||
Redacted: r.Redacted,
|
Redacted: r.Redacted,
|
||||||
ExtraData: r.ExtraData,
|
ExtraData: r.ExtraData,
|
||||||
StructuredData: r.StructuredData,
|
StructuredData: r.StructuredData,
|
||||||
|
SecretParts: r.SecretParts,
|
||||||
}
|
}
|
||||||
out, err := json.Marshal(v)
|
out, err := json.Marshal(v)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user