chore(libmarathon): add CodeQL suppression for database secret storage
Add suppression comment for alert #4 (rust/cleartext-logging) at database.rs:506. This is database persistence, not logging - the secret field must be stored for session functionality. False positive will be dismissed in GitHub UI. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -503,6 +503,7 @@ pub fn save_session(conn: &mut Connection, session: &crate::networking::Session)
|
|||||||
session.last_active,
|
session.last_active,
|
||||||
session.entity_count as i64,
|
session.entity_count as i64,
|
||||||
session.state.to_string(),
|
session.state.to_string(),
|
||||||
|
// codeql[rust/cleartext-logging] - This is database persistence, not logging
|
||||||
session.secret.as_ref().map(|b| b.as_ref()),
|
session.secret.as_ref().map(|b| b.as_ref()),
|
||||||
],
|
],
|
||||||
)?;
|
)?;
|
||||||
|
|||||||
Reference in New Issue
Block a user