MCPcopy Create free account
hub / github.com/google/go-github / runVerification

Function runVerification

example/verifyartifact/main.go:185–200  ·  view source on GitHub ↗
(sev *verify.Verifier, pb *verify.PolicyBuilder, b *bundle.Bundle)

Source from the content-addressed store, hash-verified

183}
184
185func runVerification(sev *verify.Verifier, pb *verify.PolicyBuilder, b *bundle.Bundle) error {
186 res, err := sev.Verify(b, *pb)
187 if err != nil {
188 return err
189 }
190
191 fmt.Fprint(os.Stderr, "Verification successful!\n")
192
193 marshaled, err := json.MarshalIndent(res, "", " ")
194 if err != nil {
195 return err
196 }
197
198 fmt.Println(string(marshaled))
199 return nil
200}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…