MCPcopy Create free account
hub / github.com/github/gh-aw / announceAuditRun

Function announceAuditRun

pkg/cli/audit.go:418–438  ·  view source on GitHub ↗
(cfg auditRunConfig)

Source from the content-addressed store, hash-verified

416}
417
418func 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
440func (cfg auditRunConfig) jobOptions() auditJobRunOptions {
441 return auditJobRunOptions{

Callers 1

AuditWorkflowRunFunction · 0.85

Calls 2

FormatInfoMessageFunction · 0.92
PrintfMethod · 0.45

Tested by

no test coverage detected