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

Function getSignedEntityVerifier

example/verifyartifact/main.go:150–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148}
149
150func getSignedEntityVerifier() (*verify.Verifier, error) {
151 // Set up the verifier
152 verifierConfig := []verify.VerifierOption{
153 verify.WithSignedCertificateTimestamps(1),
154 verify.WithObserverTimestamps(1),
155 verify.WithTransparencyLog(1),
156 }
157
158 // Set up the trusted material
159 trustedMaterial, err := getTrustedMaterial()
160 if err != nil {
161 return nil, err
162 }
163
164 return verify.NewVerifier(trustedMaterial, verifierConfig...)
165}
166
167func getPolicyBuilder() (*verify.PolicyBuilder, error) {
168 // Set up the identity policy

Callers 1

mainFunction · 0.85

Calls 1

getTrustedMaterialFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…