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

Function cacheRecoveryError

pkg/cli/audit.go:574–582  ·  view source on GitHub ↗
(message string, runID int64, runOutputDir string, err error)

Source from the content-addressed store, hash-verified

572}
573
574func 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
584func prepareRunForAnalysis(run WorkflowRun, cfg auditRunConfig, useLocalCache bool) WorkflowRun {
585 if useLocalCache && run.DatabaseID == 0 {

Callers 2

fetchAuditRunWithCacheFunction · 0.85

Calls 1

ErrorfMethod · 0.45

Tested by

no test coverage detected