@@ -153,6 +153,7 @@ func ensureTrialRepository(repoSlug string, cloneRepoSlug string, forceDeleteHos
153153}
154154
155155func cleanupTrialRepository (repoSlug string , verbose bool ) error {
156+ trialRepoLog .Printf ("Cleaning up trial repository: %s" , repoSlug )
156157 if verbose {
157158 fmt .Fprintln (os .Stderr , console .FormatInfoMessage ("Cleaning up host repository: " + repoSlug ))
158159 }
@@ -161,9 +162,11 @@ func cleanupTrialRepository(repoSlug string, verbose bool) error {
161162 output , err := workflow .RunGHCombined ("Deleting repository..." , "repo" , "delete" , repoSlug , "--yes" )
162163
163164 if err != nil {
165+ trialRepoLog .Printf ("Failed to delete trial repository %s: %v" , repoSlug , err )
164166 return fmt .Errorf ("failed to delete host repository: %w (output: %s)" , err , string (output ))
165167 }
166168
169+ trialRepoLog .Printf ("Successfully deleted trial repository: %s" , repoSlug )
167170 if verbose {
168171 fmt .Fprintln (os .Stderr , console .FormatSuccessMessage ("Deleted host repository: " + repoSlug ))
169172 }
@@ -172,6 +175,7 @@ func cleanupTrialRepository(repoSlug string, verbose bool) error {
172175}
173176
174177func cloneTrialHostRepository (repoSlug string , verbose bool ) (string , error ) {
178+ trialRepoLog .Printf ("Cloning trial host repository: %s" , repoSlug )
175179 // Create temporary directory
176180 tempDir := filepath .Join (os .TempDir (), fmt .Sprintf ("gh-aw-trial-%x" , time .Now ().UnixNano ()))
177181
@@ -183,12 +187,15 @@ func cloneTrialHostRepository(repoSlug string, verbose bool) (string, error) {
183187
184188 // Clone the repository using the full slug
185189 repoURL := fmt .Sprintf ("https://github.com/%s.git" , repoSlug )
190+ trialRepoLog .Printf ("Cloning repository from URL to tempDir: %s" , tempDir )
186191
187192 output , err := workflow .RunGitCombined (fmt .Sprintf ("Cloning %s..." , repoSlug ), "clone" , repoURL , tempDir )
188193 if err != nil {
194+ trialRepoLog .Printf ("Failed to clone host repository %s: %v" , repoSlug , err )
189195 return "" , fmt .Errorf ("failed to clone host repository %s: %w (output: %s)" , repoURL , err , string (output ))
190196 }
191197
198+ trialRepoLog .Printf ("Successfully cloned trial repository to: %s" , tempDir )
192199 return tempDir , nil
193200}
194201
@@ -333,6 +340,7 @@ type trialWorkflowWriteResult struct {
333340// - Writing to destination
334341// Returns the destination path and workflows directory for further processing.
335342func writeWorkflowToTrialDir (tempDir string , workflowName string , content []byte , opts * TrialOptions ) (* trialWorkflowWriteResult , error ) {
343+ trialRepoLog .Printf ("Writing workflow to trial dir: workflow=%s, content_size=%d bytes, securityScanDisabled=%v" , workflowName , len (content ), opts .DisableSecurityScanner )
336344 // Security scan: reject workflows containing malicious or dangerous content
337345 if ! opts .DisableSecurityScanner {
338346 if findings := workflow .ScanMarkdownSecurity (string (content )); len (findings ) > 0 {
@@ -387,6 +395,7 @@ func writeWorkflowToTrialDir(tempDir string, workflowName string, content []byte
387395
388396// modifyWorkflowForTrialMode modifies the workflow to work in trial mode
389397func modifyWorkflowForTrialMode (tempDir , workflowName , logicalRepoSlug string , verbose bool ) error {
398+ trialRepoLog .Printf ("Modifying workflow for trial mode: workflow=%s, logicalRepo=%s" , workflowName , logicalRepoSlug )
390399 if verbose {
391400 fmt .Fprintln (os .Stderr , console .FormatInfoMessage ("Modifying workflow for trial mode" ))
392401 }
0 commit comments