Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bots/seambot/tests/github_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ mod tests {
let response = r#"{
"token": "ghs_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"expires_at": "2024-01-15T12:00:00Z"
}"#;
}"#; // gitleaks:allow -- placeholder token (all 'x's), not a real credential

let parsed: serde_json::Value = serde_json::from_str(response).unwrap();
assert!(parsed["token"].as_str().unwrap().starts_with("ghs_"));
Expand Down
11 changes: 6 additions & 5 deletions dashboard/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,11 @@ async fn report_handler(

match format.to_lowercase().as_str() {
"html" => (StatusCode::OK, [("content-type", "text/html")], report),
"json" => (StatusCode::OK, [("content-type", "application/json")], report),
"json" => (
StatusCode::OK,
[("content-type", "application/json")],
report,
),
_ => (StatusCode::OK, [("content-type", "text/plain")], report),
}
}
Expand Down Expand Up @@ -211,10 +215,7 @@ async fn websocket_handler(
}

/// Handle WebSocket connection
async fn websocket_connection(
mut socket: axum::extract::ws::WebSocket,
state: AppState,
) {
async fn websocket_connection(mut socket: axum::extract::ws::WebSocket, state: AppState) {
use axum::extract::ws::Message;
use tokio::time::{interval, Duration};

Expand Down
Loading
Loading