(authentic bool, certIssuer string)
| 291 | } |
| 292 | |
| 293 | func formatAuthentic(authentic bool, certIssuer string) string { |
| 294 | if strings.HasSuffix(certIssuer, "O=GitHub\\, Inc.") { |
| 295 | certIssuer = "(GitHub)" |
| 296 | } else if strings.HasSuffix(certIssuer, "O=sigstore.dev") { |
| 297 | certIssuer = "(Sigstore PGI)" |
| 298 | } else { |
| 299 | certIssuer = "(Unknown)" |
| 300 | } |
| 301 | |
| 302 | return strconv.FormatBool(authentic) + " " + certIssuer |
| 303 | } |
| 304 | |
| 305 | func dumpTlogs(entity *bundle.Bundle) ([]TlogEntryInspection, error) { |
| 306 | inspectedTlogEntries := []TlogEntryInspection{} |
no outgoing calls
no test coverage detected