We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 013334b commit 1c2d3c6Copy full SHA for 1c2d3c6
1 file changed
github/server/start.go
@@ -6,8 +6,7 @@ import (
6
"net"
7
"net/http"
8
"os"
9
-
10
- "github.com/actionforge/actrun-cli/utils"
+ "path/filepath"
11
)
12
13
// Config holds parameters for starting a local GitHub Actions server.
@@ -53,11 +52,11 @@ func StartServer(cfg Config) (*RunningServer, error) {
53
52
cfg.OIDCSub = "repo:local/repo:ref:refs/heads/main"
54
}
55
56
- cleanDir, err := utils.ValidatePath(cfg.StorageDir)
+ absDir, err := filepath.Abs(cfg.StorageDir)
57
if err != nil {
58
return nil, fmt.Errorf("invalid storage directory: %w", err)
59
60
- cfg.StorageDir = cleanDir
+ cfg.StorageDir = absDir
61
62
if err := os.MkdirAll(cfg.StorageDir, 0o755); err != nil {
63
return nil, fmt.Errorf("creating storage directory: %w", err)
0 commit comments