Fix username not passed to script deployment
All checks were successful
Build and Push Container / build (push) Successful in 33s
All checks were successful
Build and Push Container / build (push) Successful in 33s
- Include username and port in scan_complete WebSocket event - Pass username from scan data when deploying scripts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -109,6 +109,8 @@ def start_scan():
|
|||||||
socketio.emit("scan_complete", {
|
socketio.emit("scan_complete", {
|
||||||
"scan_id": result.scan_id,
|
"scan_id": result.scan_id,
|
||||||
"hostname": hostname,
|
"hostname": hostname,
|
||||||
|
"username": result.username,
|
||||||
|
"port": result.port,
|
||||||
"connected": result.connected,
|
"connected": result.connected,
|
||||||
"error": result.error,
|
"error": result.error,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -85,7 +85,10 @@ export default function DiscoveryResults({ scanId, scan, analysis, devMode, onCo
|
|||||||
monitorId,
|
monitorId,
|
||||||
scan.hostname,
|
scan.hostname,
|
||||||
pushMetric,
|
pushMetric,
|
||||||
{ port: scan.port || 22 }
|
{
|
||||||
|
port: scan.port || 22,
|
||||||
|
username: scan.username || 'root'
|
||||||
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
// Update the result with new deployment status
|
// Update the result with new deployment status
|
||||||
|
|||||||
Reference in New Issue
Block a user