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

Function parseFirewallLogsIfRequested

pkg/cli/audit.go:912–923  ·  view source on GitHub ↗
(runID int64, runOutputDir string, verbose bool)

Source from the content-addressed store, hash-verified

910}
911
912func parseFirewallLogsIfRequested(runID int64, runOutputDir string, verbose bool) {
913 if err := parseFirewallLogs(runOutputDir, verbose); err != nil {
914 if verbose {
915 fmt.Fprintln(os.Stderr, console.FormatWarningMessage(fmt.Sprintf("Failed to parse firewall logs for run %d: %v", runID, err)))
916 }
917 return
918 }
919 firewallMdPath := filepath.Join(runOutputDir, "firewall.md")
920 if fileutil.FileExists(firewallMdPath) {
921 fmt.Fprintln(os.Stderr, console.FormatSuccessMessage(fmt.Sprintf("✓ Parsed firewall logs for run %d → %s", runID, firewallMdPath)))
922 }
923}
924
925func renderAuditCompletion(runOutputDir string, jsonOutput bool) {
926 if jsonOutput {

Callers 1

Calls 4

FormatWarningMessageFunction · 0.92
FileExistsFunction · 0.92
FormatSuccessMessageFunction · 0.92
parseFirewallLogsFunction · 0.70

Tested by

no test coverage detected