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

Function getIdentityPolicies

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

Source from the content-addressed store, hash-verified

137}
138
139func getIdentityPolicies() ([]verify.PolicyOption, error) {
140 certID, err := verify.NewShortCertificateIdentity(*expectedIssuer, "", *expectedSAN, "")
141 if err != nil {
142 return nil, err
143 }
144
145 return []verify.PolicyOption{
146 verify.WithCertificateIdentity(certID),
147 }, nil
148}
149
150func getSignedEntityVerifier() (*verify.Verifier, error) {
151 // Set up the verifier

Callers 1

getPolicyBuilderFunction · 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…