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
1 change: 0 additions & 1 deletion pkg/moni/ssl.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"fmt"
"os"
"os/exec"
"path/filepath"
"strconv"
"strings"
Expand Down
8 changes: 4 additions & 4 deletions pkg/moni/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

startTime := time.Now()

result := &SetupResult{

Check failure on line 28 in pkg/moni/worker.go

View workflow job for this annotation

GitHub Actions / CodeQL Security Analysis (go)

declared and not used: result

Check failure on line 28 in pkg/moni/worker.go

View workflow job for this annotation

GitHub Actions / Security Audit

declared and not used: result
Success: false,
Phases: []SetupPhase{},
StartTime: startTime,
Expand Down Expand Up @@ -147,7 +147,7 @@

// Phase 4: Restart Containers
phase4 := runPhase(rc, 4, "Container Restart", func() error {
return restartContainers(rc, workDir)

Check failure on line 150 in pkg/moni/worker.go

View workflow job for this annotation

GitHub Actions / CodeQL Security Analysis (go)

undefined: workDir

Check failure on line 150 in pkg/moni/worker.go

View workflow job for this annotation

GitHub Actions / Security Audit

undefined: workDir
})
result.Phases = append(result.Phases, phase4)
if !phase4.Success {
Expand Down Expand Up @@ -497,8 +497,8 @@
_, err := execute.Run(ctx, execute.Options{
Command: "docker",
Args: []string{"compose", "down"},
WorkDir: workDir, // P1 FIX: Explicit working directory (thread-safe)
Capture: false, // Show output to user
Dir: workDir, // P1 FIX: Explicit working directory (thread-safe)
Capture: false, // Show output to user
})

if err != nil {
Expand All @@ -513,8 +513,8 @@
_, err = execute.Run(ctx, execute.Options{
Command: "docker",
Args: []string{"compose", "up", "-d"},
WorkDir: workDir, // P1 FIX: Explicit working directory (thread-safe)
Capture: false, // Show output to user
Dir: workDir, // P1 FIX: Explicit working directory (thread-safe)
Capture: false, // Show output to user
})

if err != nil {
Expand Down
Loading