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 pkg/moni/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/CodeMonkeyCybersecurity/eos/pkg/eos_io"
"github.com/CodeMonkeyCybersecurity/eos/pkg/execute"
"github.com/CodeMonkeyCybersecurity/eos/pkg/interaction"
"github.com/uptrace/opentelemetry-go-extra/otelzap"
"go.uber.org/zap"
"go.uber.org/zap/otelzap"
)

// ConfigureDatabase configures database models and prompts
Expand Down
2 changes: 1 addition & 1 deletion pkg/moni/ssl.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"context"
"fmt"
"os"
"os/exec"

Check failure on line 7 in pkg/moni/ssl.go

View workflow job for this annotation

GitHub Actions / CodeQL Security Analysis (go)

"os/exec" imported and not used

Check failure on line 7 in pkg/moni/ssl.go

View workflow job for this annotation

GitHub Actions / Security Audit

"os/exec" imported and not used
"path/filepath"
"strconv"
"strings"
Expand All @@ -12,8 +12,8 @@

"github.com/CodeMonkeyCybersecurity/eos/pkg/eos_io"
"github.com/CodeMonkeyCybersecurity/eos/pkg/execute"
"github.com/uptrace/opentelemetry-go-extra/otelzap"
"go.uber.org/zap"
"go.uber.org/zap/otelzap"
"gopkg.in/yaml.v3"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/moni/verification.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

"github.com/CodeMonkeyCybersecurity/eos/pkg/eos_io"
"github.com/CodeMonkeyCybersecurity/eos/pkg/execute"
"github.com/uptrace/opentelemetry-go-extra/otelzap"
"go.uber.org/zap"
"go.uber.org/zap/otelzap"
)

// WaitForService waits for a service to become ready
Expand Down
2 changes: 1 addition & 1 deletion pkg/moni/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

"github.com/CodeMonkeyCybersecurity/eos/pkg/eos_io"
"github.com/CodeMonkeyCybersecurity/eos/pkg/execute"
"github.com/uptrace/opentelemetry-go-extra/otelzap"
"go.uber.org/zap"
"go.uber.org/zap/otelzap"
)

// RunWorker runs the Moni initialization worker
Expand All @@ -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,7 +497,7 @@
_, err := execute.Run(ctx, execute.Options{
Command: "docker",
Args: []string{"compose", "down"},
WorkDir: workDir, // P1 FIX: Explicit working directory (thread-safe)

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

View workflow job for this annotation

GitHub Actions / CodeQL Security Analysis (go)

unknown field WorkDir in struct literal of type execute.Options

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

View workflow job for this annotation

GitHub Actions / Security Audit

unknown field WorkDir in struct literal of type execute.Options
Capture: false, // Show output to user
})

Expand All @@ -513,7 +513,7 @@
_, err = execute.Run(ctx, execute.Options{
Command: "docker",
Args: []string{"compose", "up", "-d"},
WorkDir: workDir, // P1 FIX: Explicit working directory (thread-safe)

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

View workflow job for this annotation

GitHub Actions / CodeQL Security Analysis (go)

unknown field WorkDir in struct literal of type execute.Options

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

View workflow job for this annotation

GitHub Actions / Security Audit

unknown field WorkDir in struct literal of type execute.Options
Capture: false, // Show output to user
})

Expand Down
Loading