(cfg auditRunConfig)
| 416 | } |
| 417 | |
| 418 | func announceAuditRun(cfg auditRunConfig) { |
| 419 | auditLog.Printf("Starting audit for workflow run: runID=%d, owner=%s, repo=%s, hostname=%s, jobID=%d, stepNumber=%d", cfg.runID, cfg.owner, cfg.repo, cfg.hostname, cfg.jobID, cfg.stepNumber) |
| 420 | if len(cfg.artifactFilter) > 0 { |
| 421 | auditLog.Printf("Artifact filter active: %v", cfg.artifactFilter) |
| 422 | if cfg.verbose { |
| 423 | fmt.Fprintln(os.Stderr, console.FormatInfoMessage("Artifact filter: downloading only "+strings.Join(cfg.artifactFilter, ", "))) |
| 424 | } |
| 425 | } |
| 426 | if !cfg.verbose { |
| 427 | return |
| 428 | } |
| 429 | if cfg.jobID > 0 && cfg.stepNumber > 0 { |
| 430 | fmt.Fprintln(os.Stderr, console.FormatInfoMessage(fmt.Sprintf("Auditing workflow run %d, job %d, step %d...", cfg.runID, cfg.jobID, cfg.stepNumber))) |
| 431 | return |
| 432 | } |
| 433 | if cfg.jobID > 0 { |
| 434 | fmt.Fprintln(os.Stderr, console.FormatInfoMessage(fmt.Sprintf("Auditing workflow run %d, job %d...", cfg.runID, cfg.jobID))) |
| 435 | return |
| 436 | } |
| 437 | fmt.Fprintln(os.Stderr, console.FormatInfoMessage(fmt.Sprintf("Auditing workflow run %d...", cfg.runID))) |
| 438 | } |
| 439 | |
| 440 | func (cfg auditRunConfig) jobOptions() auditJobRunOptions { |
| 441 | return auditJobRunOptions{ |
no test coverage detected