Skip to content

Commit 2dbfa85

Browse files
🔧 CodeRabbit CI Fix: Fix failing CI checks across security, Rust, and governance workflows
1 parent 39cc7eb commit 2dbfa85

3 files changed

Lines changed: 401 additions & 18 deletions

File tree

‎bots/seambot/tests/github_integration.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ mod tests {
153153
let response = r#"{
154154
"token": "ghs_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
155155
"expires_at": "2024-01-15T12:00:00Z"
156-
}"#;
156+
}"#; // gitleaks:allow -- placeholder token (all 'x's), not a real credential
157157

158158
let parsed: serde_json::Value = serde_json::from_str(response).unwrap();
159159
assert!(parsed["token"].as_str().unwrap().starts_with("ghs_"));

‎dashboard/src/main.rs‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,11 @@ async fn report_handler(
175175

176176
match format.to_lowercase().as_str() {
177177
"html" => (StatusCode::OK, [("content-type", "text/html")], report),
178-
"json" => (StatusCode::OK, [("content-type", "application/json")], report),
178+
"json" => (
179+
StatusCode::OK,
180+
[("content-type", "application/json")],
181+
report,
182+
),
179183
_ => (StatusCode::OK, [("content-type", "text/plain")], report),
180184
}
181185
}
@@ -211,10 +215,7 @@ async fn websocket_handler(
211215
}
212216

213217
/// Handle WebSocket connection
214-
async fn websocket_connection(
215-
mut socket: axum::extract::ws::WebSocket,
216-
state: AppState,
217-
) {
218+
async fn websocket_connection(mut socket: axum::extract::ws::WebSocket, state: AppState) {
218219
use axum::extract::ws::Message;
219220
use tokio::time::{interval, Duration};
220221

0 commit comments

Comments
 (0)