Skip to content

Find, verify, and analyze leaked credentials

Analysis info now uses snake case (#4765)

Muneeb Ullah Khan4860052fc923
diff --git a/pkg/detectors/tableau/tableau.go b/pkg/detectors/tableau/tableau.go
index dfe896c92..9daf232db 100644
--- a/pkg/detectors/tableau/tableau.go
+++ b/pkg/detectors/tableau/tableau.go
@@ -98,7 +98,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
maps.Copy(result.ExtraData, extraData)
result.SetVerificationError(verificationErr, tokenName, tokenSecret, endpoint)
if isVerified {
- result.AnalysisInfo = map[string]string{"tokenName": tokenName, "patSecret": tokenSecret, "endpoint": endpoint}
+ result.AnalysisInfo = map[string]string{"token_name": tokenName, "pat_secret": tokenSecret, "endpoint": endpoint}
}
}
results = append(results, result)
diff --git a/pkg/detectors/tableau/tableau_integration_test.go b/pkg/detectors/tableau/tableau_integration_test.go
index de9e9e693..48dd41a0a 100644
--- a/pkg/detectors/tableau/tableau_integration_test.go
+++ b/pkg/detectors/tableau/tableau_integration_test.go
@@ -70,9 +70,9 @@ func TestTableau_FromChunk(t *testing.T) {
"auth_token_received": "true",
},
AnalysisInfo: map[string]string{
- "endpoint": tableauURL,
- "patSecret": tokenSecret,
- "tokenName": tokenName,
+ "endpoint": tableauURL,
+ "pat_secret": tokenSecret,
+ "token_name": tokenName,
},
},
},