(message string, runID int64, runOutputDir string, err error)
| 572 | } |
| 573 | |
| 574 | func cacheRecoveryError(message string, runID int64, runOutputDir string, err error) error { |
| 575 | return fmt.Errorf(message+"\n\n"+ |
| 576 | "To download artifacts, use the GitHub MCP server:\n\n"+ |
| 577 | "1. Use the github-mcp-server tool 'download_workflow_run_artifacts' with:\n"+ |
| 578 | " - run_id: %d\n"+ |
| 579 | " - output_directory: %s\n\n"+ |
| 580 | "2. After downloading, run this audit command again to analyze the cached artifacts.\n\n"+ |
| 581 | "Original error: %v", runID, runOutputDir, err) |
| 582 | } |
| 583 | |
| 584 | func prepareRunForAnalysis(run WorkflowRun, cfg auditRunConfig, useLocalCache bool) WorkflowRun { |
| 585 | if useLocalCache && run.DatabaseID == 0 { |
no test coverage detected