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)
| 169 | // secret redaction. It is shared across engines (Claude, Codex, Copilot) whose |
| 170 | // GetSquidLogsSteps implementations are otherwise identical save for the logger used. |
| 171 | func 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 | } |
no test coverage detected