MCPcopy
hub / github.com/deepfence/SecretScanner / PrintColoredSecrets

Function PrintColoredSecrets

output/output.go:129–134  ·  view source on GitHub ↗
(secrets []SecretFound, isFirstSecret *bool)

Source from the content-addressed store, hash-verified

127}
128
129func PrintColoredSecrets(secrets []SecretFound, isFirstSecret *bool) {
130 for _, secret := range secrets {
131 printColoredSecretJSONObject(secret, isFirstSecret)
132 *isFirstSecret = false
133 }
134}
135
136// Function to print json object with the matches secret string in color
137func printColoredSecretJSONObject(secret SecretFound, isFirstSecret *bool) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected