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

Function sameAuditComparisonWorkflow

pkg/cli/audit_comparison.go:294–302  ·  view source on GitHub ↗
(left WorkflowRun, right WorkflowRun)

Source from the content-addressed store, hash-verified

292}
293
294func sameAuditComparisonWorkflow(left WorkflowRun, right WorkflowRun) bool {
295 if left.WorkflowPath != "" && right.WorkflowPath != "" {
296 return left.WorkflowPath == right.WorkflowPath
297 }
298 if left.WorkflowName != "" && right.WorkflowName != "" {
299 return left.WorkflowName == right.WorkflowName
300 }
301 return false
302}
303
304func buildAuditComparisonForProcessedRuns(currentRun ProcessedRun, processedRuns []ProcessedRun) *AuditComparisonData {
305 auditComparisonLog.Printf("Building audit comparison for run %d from %d processed runs", currentRun.Run.DatabaseID, len(processedRuns))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected