Skip to content

Commit

Permalink
prefix tmp dir
Browse files Browse the repository at this point in the history
  • Loading branch information
robmorgan committed Jan 27, 2025
1 parent 6bc4ee2 commit 89030e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ func (r *Runner) executeStepImpl(ctx context.Context, repoName string, step pipe
}

// clone the repo
repoDestPath := os.TempDir()
repoDestPath, err := os.MkdirTemp("", "metamorph-")
if err != nil {
return Result{}, err
}
repoUrlFormatted := fmt.Sprintf("https://%s.com/%s/%s.git", r.cfg.Platform, r.cfg.PlatformOrg, repoName)
cloneOpts := git.CloneOptions{
URL: repoUrlFormatted,
Expand Down

0 comments on commit 89030e5

Please sign in to comment.