Skip to content

Commit 1c2d3c6

Browse files
committed
Additional codeql warning fix
1 parent 013334b commit 1c2d3c6

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

github/server/start.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import (
66
"net"
77
"net/http"
88
"os"
9-
10-
"github.com/actionforge/actrun-cli/utils"
9+
"path/filepath"
1110
)
1211

1312
// Config holds parameters for starting a local GitHub Actions server.
@@ -53,11 +52,11 @@ func StartServer(cfg Config) (*RunningServer, error) {
5352
cfg.OIDCSub = "repo:local/repo:ref:refs/heads/main"
5453
}
5554

56-
cleanDir, err := utils.ValidatePath(cfg.StorageDir)
55+
absDir, err := filepath.Abs(cfg.StorageDir)
5756
if err != nil {
5857
return nil, fmt.Errorf("invalid storage directory: %w", err)
5958
}
60-
cfg.StorageDir = cleanDir
59+
cfg.StorageDir = absDir
6160

6261
if err := os.MkdirAll(cfg.StorageDir, 0o755); err != nil {
6362
return nil, fmt.Errorf("creating storage directory: %w", err)

0 commit comments

Comments
 (0)