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

Function defaultGetSquidLogsSteps

pkg/workflow/engine_firewall_support.go:171–189  ·  view source on GitHub ↗

defaultGetSquidLogsSteps returns the steps for uploading and parsing Squid logs after secret redaction. It is shared across engines (Claude, Codex, Copilot) whose GetSquidLogsSteps implementations are otherwise identical save for the logger used.

(workflowData *WorkflowData, debugLog *logger.Logger)

Source from the content-addressed store, hash-verified

169// secret redaction. It is shared across engines (Claude, Codex, Copilot) whose
170// GetSquidLogsSteps implementations are otherwise identical save for the logger used.
171func defaultGetSquidLogsSteps(workflowData *WorkflowData, debugLog *logger.Logger) []GitHubActionStep {
172 var steps []GitHubActionStep
173
174 // Only add upload and parsing steps if firewall is enabled
175 if isFirewallEnabled(workflowData) {
176 debugLog.Printf("Adding Squid logs upload and parsing steps for workflow: %s", workflowData.Name)
177
178 squidLogsUpload := generateSquidLogsUploadStep(workflowData.Name, workflowData)
179 steps = append(steps, squidLogsUpload)
180
181 // Add firewall log parsing step to create step summary
182 firewallLogParsing := generateFirewallLogParsingStep(workflowData.Name, workflowData)
183 steps = append(steps, firewallLogParsing)
184 } else {
185 debugLog.Print("Firewall disabled, skipping Squid logs upload")
186 }
187
188 return steps
189}

Callers 3

GetSquidLogsStepsMethod · 0.85
GetSquidLogsStepsMethod · 0.85
GetSquidLogsStepsMethod · 0.85

Calls 5

isFirewallEnabledFunction · 0.85
PrintMethod · 0.80
PrintfMethod · 0.45

Tested by

no test coverage detected