MCPcopy Create free account
hub / github.com/cli/cli / formatAuthentic

Function formatAuthentic

pkg/cmd/attestation/inspect/inspect.go:293–303  ·  view source on GitHub ↗
(authentic bool, certIssuer string)

Source from the content-addressed store, hash-verified

291}
292
293func 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
305func dumpTlogs(entity *bundle.Bundle) ([]TlogEntryInspection, error) {
306 inspectedTlogEntries := []TlogEntryInspection{}

Callers 1

printInspectionSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected